[FFmpeg-devel] Possible error in output_example.c
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
> from AV_NOPTS_VALUE?
> 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.
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
Size: 189 bytes
Desc: Digital signature
More information about the ffmpeg-devel