avcodec/ffv1enc: pass through pts
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Nov 2013 21:52:19 +0000 (22:52 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 2 Nov 2013 21:52:52 +0000 (22:52 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1enc.c

index 59d2869..a000ddb 100644 (file)
@@ -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;