[FFmpeg-devel] Possible error in output_example.c

Luca Abeni lucabe72
Wed Jul 23 10:30:04 CEST 2008

Hi all,

are codecs supposed to set coded_frame->pts to a value different

If yes, then some codecs must be fixed in this regard.
If no, then output_example.c is buggy because it sets
pkt.pts= av_rescale_q(c->coded_frame->pts, c->time_base, st->time_base);
without checking if c->coded_frame->pts is a valid time. So, a
patch like the attached one should be applied.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_pts_computation.diff
Type: text/x-diff
Size: 1109 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080723/d153509f/attachment.diff>

More information about the ffmpeg-devel mailing list