[FFmpeg-devel] [PATCH] avcodec/decode: Do not output subtitle frames if the packet is marked with `AV_PKT_FLAG_DISCARD`.

Derek Buitenhuis derek.buitenhuis at gmail.com
Thu May 23 20:12:26 EEST 2019


On 22/05/2019 18:55, Darren Mo wrote:
> Good question. The subtitle would be discarded if it overlaps an edit boundary.
> 
> The root cause is the MOV demuxer currently marks boundary packets for discard. However, due to subtitle frames not being discarded (fixed by this patch), the root cause is hidden. A potential fix for the root cause would be to handle boundary packets by changing their timestamps to fit the edit boundary. (That would be a separate patch though.)

As a start, this patch seems reasonable then...

- Derek


More information about the ffmpeg-devel mailing list