mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-23 13:51:48 +00:00
avcodec/utils: clear the packet props queue on flushing
This ensures no queued timestamps or side data are kept and used after seeking, preventing potential desyncs. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
5c7823ff1c
commit
d2dcb113f8
@ -1093,6 +1093,10 @@ void avcodec_flush_buffers(AVCodecContext *avctx)
|
||||
av_packet_unref(avci->compat_encode_packet);
|
||||
av_packet_unref(avci->buffer_pkt);
|
||||
|
||||
av_packet_unref(avci->last_pkt_props);
|
||||
avpriv_packet_list_free(&avci->pkt_props,
|
||||
&avci->pkt_props_tail);
|
||||
|
||||
av_frame_unref(avci->es.in_frame);
|
||||
av_packet_unref(avci->ds.in_pkt);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user