[FFmpeg-cvslog] avcodec/wmadec: clear pts when returning a frame during flush

James Almer git at videolan.org
Wed Dec 7 14:02:48 EET 2022


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Dec  5 20:58:11 2022 -0300| [c06e88e05c5154cce31f5c12fde1da9b2070979e] | committer: James Almer

avcodec/wmadec: clear pts when returning a frame during flush

This will be needed for the following commit, after which ff_get_buffer() will
stop setting frame->pts to AV_NOPTS_VALUE.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c06e88e05c5154cce31f5c12fde1da9b2070979e
---

 libavcodec/wmadec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index 15d6fb42b2..bc18d18222 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -845,6 +845,7 @@ static int wma_decode_superframe(AVCodecContext *avctx, AVFrame *frame,
         if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
             return ret;
 
+        frame->pts = AV_NOPTS_VALUE;
         for (i = 0; i < s->avctx->ch_layout.nb_channels; i++)
             memcpy(frame->extended_data[i], &s->frame_out[i][0],
                    frame->nb_samples * sizeof(s->frame_out[i][0]));



More information about the ffmpeg-cvslog mailing list