summaryrefslogtreecommitdiff
path: root/libavcodec/wmadec.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-12-05 20:58:11 -0300
committerJames Almer <jamrial@gmail.com>2022-12-07 08:48:47 -0300
commitc06e88e05c5154cce31f5c12fde1da9b2070979e (patch)
tree362704a8d86631fe76c177d50ef15a362fe0b9d3 /libavcodec/wmadec.c
parent8dcb8d1b808d4f8cd6444de05d8277b2e7959144 (diff)
downloadffmpeg-c06e88e05c5154cce31f5c12fde1da9b2070979e.tar.gz
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@gmail.com>
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r--libavcodec/wmadec.c1
1 files changed, 1 insertions, 0 deletions
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]));