Forgot to mention that this is a possible fix for #1150 and #1598...
----- Mail original ----- > When "-fflags +genpts" is used for output file, use dts as pts. > > Signed-off-by: Benoit Fouet <benoit.fo...@free.fr> > --- > libavformat/mux.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavformat/mux.c b/libavformat/mux.c > index 5e45bd8..1d42451 100644 > --- a/libavformat/mux.c > +++ b/libavformat/mux.c > @@ -884,6 +884,9 @@ int av_interleaved_write_frame(AVFormatContext > *s, AVPacket *pkt) > ret = AVERROR(EINVAL); > goto fail; > } > + > + if (pkt->pts == AV_NOPTS_VALUE && s->flags & > AVFMT_FLAG_GENPTS) > + pkt->pts = pkt->dts; > } else { > av_dlog(s, "av_interleaved_write_frame FLUSH\n"); > flush = 1; > -- > 2.1.2.532.g19b5d50 > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel