[FFmpeg-devel] [RFC][PATCH 18/18] avcodec/avpacket: make the AVPacketList API thread safe

James Almer jamrial at gmail.com
Thu Nov 19 18:36:47 EET 2020


On 11/19/2020 1:18 PM, Michael Niedermayer wrote:
> On Wed, Nov 18, 2020 at 01:52:47PM -0300, James Almer wrote:
>> Signed-off-by: James Almer <jamrial at gmail.com>
>> ---
>> I don't know if this is necessary, so i'm sending it as an RFC.
>>
>>   libavcodec/avpacket.c        | 34 +++++++++++++++++++++++++++++++---
>>   libavcodec/packet_internal.h |  2 ++
>>   2 files changed, 33 insertions(+), 3 deletions(-)
> 
> This seems to break build on mingw
> 
> In file included from src/libavutil/thread.h:146:0,
>                   from src/libavcodec/packet_internal.h:24,
>                   from src/libavformat/internal.h:29,
>                   from src/libavformat/options_table.h:28,
>                   from src/doc/print_options.c:43:
> src/compat/w32pthreads.h:39:10: fatal error: windows.h: No such file or directory
>   #include <windows.h>

This makes no sense. How can that header be missing?

Either you're using a very old mingw build, or a broken one, because i 
tested this on mingw myself.

>            ^~~~~~~~~~~
> compilation terminated.
> 
> 
> [...]
> 
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
> 



More information about the ffmpeg-devel mailing list