From 2234c261324989a56bb7401088e45384578b91d2 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 2 Oct 2010 19:11:09 +0000 Subject: 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://svn.handbrake.fr/HandBrake/trunk@3563 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/hbffmpeg.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libhb/hbffmpeg.h') diff --git a/libhb/hbffmpeg.h b/libhb/hbffmpeg.h index 7c17e1a64..8a7dc90fe 100644 --- a/libhb/hbffmpeg.h +++ b/libhb/hbffmpeg.h @@ -9,4 +9,5 @@ void hb_avcodec_init(void); int hb_avcodec_open( AVCodecContext *, struct AVCodec * ); int hb_avcodec_close( AVCodecContext * ); +int hb_av_find_stream_info(AVFormatContext *ic); int hb_ff_layout_xlat(int64_t ff_layout, int channels); -- cgit v1.2.3