[FFmpeg-devel] [PATCH] lavc/rawdec: propagate duration from packet to frame

Stefano Sabatini stefasab at gmail.com
Sun Jun 17 12:21:57 CEST 2012


---
 libavcodec/rawdec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c
index 4c850f5..d790b88 100644
--- a/libavcodec/rawdec.c
+++ b/libavcodec/rawdec.c
@@ -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->pkt_duration     = avctx->pkt->duration;
 
     if(context->tff>=0){
         frame->interlaced_frame = 1;
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list