mirror of https://git.ffmpeg.org/ffmpeg.git
vp9: set timestamps for show_existing_frame return images.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
58d605ee9b
commit
d9555adf06
|
@ -3765,6 +3765,8 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame,
|
||||||
}
|
}
|
||||||
if ((res = av_frame_ref(frame, s->refs[ref].f)) < 0)
|
if ((res = av_frame_ref(frame, s->refs[ref].f)) < 0)
|
||||||
return res;
|
return res;
|
||||||
|
((AVFrame *)frame)->pkt_pts = pkt->pts;
|
||||||
|
((AVFrame *)frame)->pkt_dts = pkt->dts;
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
return pkt->size;
|
return pkt->size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue