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

Stefano Sabatini stefasab at gmail.com
Tue Jun 19 01:47:42 CEST 2012


On date Sunday 2012-06-17 14:37:33 +0200, Michael Niedermayer encoded:
> On Sun, Jun 17, 2012 at 12:21:57PM +0200, Stefano Sabatini wrote:
> > ---
> >  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;
> 
> LGTM

Applied.
-- 
FFmpeg = Funny Furious Martial Problematic Experimenting Guide


More information about the ffmpeg-devel mailing list