[FFmpeg-cvslog] vp9: set timestamps for show_existing_frame return images.

Ronald S. Bultje git at videolan.org
Thu Apr 23 20:35:29 CEST 2015


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Wed Apr 22 12:24:40 2015 -0400| [d9555adf06d55f7311d0b8be5bbe52f056ccaac7] | committer: Michael Niedermayer

vp9: set timestamps for show_existing_frame return images.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9555adf06d55f7311d0b8be5bbe52f056ccaac7
---

 libavcodec/vp9.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index b3d6d86..8d9ba0d 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;
     }



More information about the ffmpeg-cvslog mailing list