lavc/rawdec: propagate duration from packet to frame
authorStefano Sabatini <stefasab@gmail.com>
Sat, 16 Jun 2012 09:01:33 +0000 (11:01 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Mon, 18 Jun 2012 23:36:17 +0000 (01:36 +0200)
libavcodec/rawdec.c

index 4c850f5..d790b88 100644 (file)
@@ -150,6 +150,7 @@ static int raw_decode(AVCodecContext *avctx,
     frame->reordered_opaque = avctx->reordered_opaque;
     frame->pkt_pts          = avctx->pkt->pts;
     frame->pkt_pos          = avctx->pkt->pos;
     frame->reordered_opaque = avctx->reordered_opaque;
     frame->pkt_pts          = avctx->pkt->pts;
     frame->pkt_pos          = avctx->pkt->pos;
+    frame->pkt_duration     = avctx->pkt->duration;
 
     if(context->tff>=0){
         frame->interlaced_frame = 1;
 
     if(context->tff>=0){
         frame->interlaced_frame = 1;