[FFmpeg-devel] [PATCH v4] lavc: convert frame threading to the receive_frame() pattern

Timo Rothenpieler timo at rothenpieler.org
Sat Dec 10 22:10:18 EET 2022


On 10.12.2022 00:46, Michael Niedermayer wrote:
> On Fri, Dec 09, 2022 at 02:37:04PM +0100, Timo Rothenpieler wrote:
>> From: Anton Khirnov <anton at khirnov.net>
>>
>> Reorganize the code such that the frame threading code does not call the
>> decoders directly, but instead calls back into the generic decoding
>> code. This avoids duplicating the logic that wraps the decoder
>> invocation and will be useful in the following commits.
>> ---
>>   libavcodec/decode.c        |  58 +++++----
>>   libavcodec/decode.h        |   7 +
>>   libavcodec/internal.h      |   7 +
>>   libavcodec/pthread_frame.c | 256 ++++++++++++++++++++++++-------------
>>   libavcodec/thread.h        |  18 +--
>>   5 files changed, 223 insertions(+), 123 deletions(-)
> 
> this patch changes the output with this:
> 
> ./ffmpeg -ss 1 -i Enigma_Principles_of_Lust.flv -t 1 -bitexact -f framecrc

Yeah, I'd like to have that file.

The change is interesting, and it looks like it might actually be legit 
frames?



More information about the ffmpeg-devel mailing list