summaryrefslogtreecommitdiff
path: root/libavcodec/vp9.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-04-22 12:24:40 -0400
committerMichael Niedermayer <michaelni@gmx.at>2015-04-23 20:34:51 +0200
commitd9555adf06d55f7311d0b8be5bbe52f056ccaac7 (patch)
tree1d49a973b88d1739ecc14305e170565ee5e12d90 /libavcodec/vp9.c
parent58d605ee9b3277289278dc40e022311f8e083833 (diff)
vp9: set timestamps for show_existing_frame return images.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r--libavcodec/vp9.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index b3d6d860d4..8d9ba0d0ae 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -3765,6 +3765,8 @@ static int vp9_decode_frame(AVCodecContext *ctx, void *frame,
}
if ((res = av_frame_ref(frame, s->refs[ref].f)) < 0)
return res;
+ ((AVFrame *)frame)->pkt_pts = pkt->pts;
+ ((AVFrame *)frame)->pkt_dts = pkt->dts;
*got_frame = 1;
return pkt->size;
}