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

Michael Niedermayer michaelni at gmx.at
Sun Jun 17 14:37:33 CEST 2012


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120617/cd48f26e/attachment.asc>


More information about the ffmpeg-devel mailing list