[FFmpeg-cvslog] r26260 - in trunk: doc/APIchanges ffplay.c libavcodec/avcodec.h libavcodec/utils.c

Nicolas George nicolas.george
Wed Feb 2 22:07:35 CET 2011


Le nonidi 19 niv?se, an CCXIX, michael a ?crit?:
> @@ -344,6 +344,8 @@ int avcodec_default_get_buffer(AVCodecCo
>      }
>      s->internal_buffer_count++;
>  
> +    if(s->pkt) pic->pkt_pts= s->pkt->pts;
> +    else       pic->pkt_pts= AV_NOPTS_VALUE;
>      pic->reordered_opaque= s->reordered_opaque;

I believe you forgot the same lines in _reget_buffer. This is a part of the
code I really do not understand well, but when working on using pkt_pts in
ffmpeg, I noticed that fate-vsynth1-flashsv fails because the flashsv
decoder do not update pkt_pts when decoding vsynth1/flashsv.flv. The
attached patch seems to fix it.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Reorder-pts-in-avcodec_default_reget_buffer.patch
Type: text/x-diff
Size: 889 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20110202/eba5032f/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20110202/eba5032f/attachment.pgp>



More information about the ffmpeg-cvslog mailing list