mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-13 19:01:03 +00:00
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>
This commit is contained in:
parent
8dcb8d1b80
commit
c06e88e05c
@ -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]));
|
||||
|
Loading…
Reference in New Issue
Block a user