[FFmpeg-devel] [PATCH] avformat/fifo: Check for keyframe video type before stop dropping

Michael Niedermayer michael at niedermayer.cc
Sun Mar 30 00:57:18 EET 2025


Hi Arthur

On Wed, Mar 12, 2025 at 03:45:42PM -0300, Arthur Grillo wrote:
> The current behavior when using restart_with_keyframe is that it will
> recover if it also encounters any audio packet, as they are flagged as a
> keyframe.
> 
> The expectation is that packets are dropped until the next _video_
> keyframe.
> 
> Fix that by checking the packet stream codec type, only letting it
> recover when it is a video one.
> 
> Fixes ticket: #11467
> 
> Signed-off-by: Arthur Grillo <arthurgrillo at riseup.net>
> ---
> Cc: lingjiujianke at gmail.com
> ---
>  libavformat/fifo.c | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)

What happens if there is no video stream ?

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250329/ad7995c9/attachment.sig>


More information about the ffmpeg-devel mailing list