[FFmpeg-cvslog] avcodec/ffv1enc: pass through pts

Michael Niedermayer git at videolan.org
Sat Nov 2 22:59:51 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov  2 22:52:19 2013 +0100| [8d88ed9a1fb446184275bce006915a593943f95b] | committer: Michael Niedermayer

avcodec/ffv1enc: pass through pts

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

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

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

diff --git a/libavcodec/ffv1enc.c b/libavcodec/ffv1enc.c
index 59d2869..a000ddb 100644
--- a/libavcodec/ffv1enc.c
+++ b/libavcodec/ffv1enc.c
@@ -1184,6 +1184,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
 
     f->picture_number++;
     pkt->size   = buf_p - pkt->data;
+    pkt->pts    =
+    pkt->dts    = pict->pts;
     pkt->flags |= AV_PKT_FLAG_KEY * p->key_frame;
     *got_packet = 1;
 



More information about the ffmpeg-cvslog mailing list