OSDN Git Service

fix ffmpeg locking issue
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 2 Oct 2010 19:11:09 +0000 (19:11 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 2 Oct 2010 19:11:09 +0000 (19:11 +0000)
commit8e1255d542133cf6b378190d947254ca9df3347d
treeaf4d132f918504d306f0308c4abc73f42051ede5
parent1d6fbf402512f7cbba3c9dac7e10a72aeebd1d81
fix ffmpeg locking issue
ffmpeg complained "insufficient thread locking around avcodec_open/close()".
This was caused by encavcodec.c calling avcodec_open at the same time as
stream.c called av_find_stream_info.  av_find_stream_info has a side effect
of calling avcodec_open, so we must lock around this call as well.

git-svn-id: svn://localhost/HandBrake/trunk@3563 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/hb.c
libhb/hbffmpeg.h
libhb/stream.c