vp9: set timestamps for show_existing_frame return images.
authorRonald S. Bultje <rsbultje@gmail.com>
Wed, 22 Apr 2015 16:24:40 +0000 (12:24 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 23 Apr 2015 18:34:51 +0000 (20:34 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vp9.c

index b3d6d86..8d9ba0d 100644 (file)
@@ -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;
     }