[FFmpeg-devel] [PATCH] avformat/utils: Preserve AV_PKT_FLAG_CORRUPT
Pavel Koshevoy
pkoshevoy at gmail.com
Thu Mar 18 23:11:19 EET 2021
On Thu, Mar 18, 2021 at 2:57 PM Pavel Koshevoy <pkoshevoy at gmail.com> wrote:
>
>
> On Thu, Mar 18, 2021 at 2:51 PM Marton Balint <cus at passwd.hu> wrote:
>
>>
>>
>> On Wed, 17 Mar 2021, Pavel Koshevoy wrote:
>>
>> > Preserve AV_PKT_FLAG_CORRUPT so the caller can decide whether to drop
>> > the packet.
>>
>> LGTM, but Michael was against it last time:
>>
>>
>> https://patchwork.ffmpeg.org/project/ffmpeg/patch/20181009233214.8785-2-cus@passwd.hu/
>>
>>
>>
>
> I have a source where a corrupt packet is able to poison the video decoder
> so that the subsequent video is decoded with severe visual artifacts. My
> workaround is to detect corrupt packets, drop them and re-create the video
> decoder on the next non-corrupt packet. This workaround is working well so
> far.
>
> Pavel.
>
Although, the video decoder being poisoned seems to be a regression in
ffmpeg ... the problem doesn't occur with ffmpeg git snapshot from
20190318, 15d016be30bd24cdba514c7c888e9da0286b5647
Pavel.
More information about the ffmpeg-devel
mailing list