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

Stefano Sabatini git at videolan.org
Tue Jun 19 01:47:14 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Jun 16 11:01:33 2012 +0200| [b583ccc3dbc9d29a5e50b9394ec3eea7237a520a] | committer: Stefano Sabatini

lavc/rawdec: propagate duration from packet to frame

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

 libavcodec/rawdec.c |    1 +
 1 file changed, 1 insertion(+)

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;



More information about the ffmpeg-cvslog mailing list