On 29/03/25 7:57 PM, Michael Niedermayer wrote:
> 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 <arthurgri...@riseup.net>
>> ---
>> Cc: lingjiujia...@gmail.com
>> ---
>> libavformat/fifo.c | 11 +++++++++--
>> 1 file changed, 9 insertions(+), 2 deletions(-)
>
> What happens if there is no video stream ?
>
> thx
Well noted, I will add a check for the existence of a video stream, if
no video stream is found, it will resume to the original behavior of not
caring about the stream type.
Regards,
~Grillo
>
> [...]
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".