[FFmpeg-devel] [PATCH] avcodec thread safety fix

Andreas Öman andreas
Mon May 25 19:59:16 CEST 2009


Diego Biurrun wrote:
> On Mon, May 25, 2009 at 07:47:13PM +0200, Andreas ?man wrote:
>> A patch with this attached.
>> --- libavcodec/utils.c	(revision 18941)
>> +++ libavcodec/utils.c	(working copy)
>> @@ -65,6 +65,7 @@
>>  
>>  static int volatile entangled_thread_counter=0;
>> +static void (*codec_mutex_cb)(int lock);
> 
> Why the ugly forward declaration?

It's not a forward declaration. It's a function pointer.



More information about the ffmpeg-devel mailing list