[FFmpeg-devel] Possible error in output_example.c

Michael Niedermayer michaelni
Wed Jul 23 12:41:25 CEST 2008

On Wed, Jul 23, 2008 at 10:30:04AM +0200, Luca Abeni wrote:
> 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.

patch ok

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080723/a808b698/attachment.pgp>

More information about the ffmpeg-devel mailing list