Re: [FFmpeg-devel] [PATCH] avformat/mux: ignore invalid timestamps on formats without timestamps
On Thu, Apr 12, 2018 at 9:59 PM, Michael Niedermayer wrote: > On Thu, Apr 12, 2018 at 10:20:38AM +0200, Hendrik Leppkes wrote: >> --- >> libavformat/mux.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) > > can you provide an example/testcase of when this is needed ? > Just take any file with that particular timestamp problem and try muxing its audio into a raw audio formt, like .ac3. It already ignores that error on non-strict timestamps, so it should even moreso ignore it when not handling timestamps at all. - Hendrik ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
Re: [FFmpeg-devel] [PATCH] avformat/mux: ignore invalid timestamps on formats without timestamps
On Thu, Apr 12, 2018 at 10:20:38AM +0200, Hendrik Leppkes wrote: > --- > libavformat/mux.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) can you provide an example/testcase of when this is needed ? thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Those who are best at talking, realize last or never when they are wrong. signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
[FFmpeg-devel] [PATCH] avformat/mux: ignore invalid timestamps on formats without timestamps
--- libavformat/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index a13f0e3a1b..0857419394 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -615,7 +615,7 @@ static int compute_muxer_pkt_fields(AVFormatContext *s, AVStream *st, AVPacket * } if (st->cur_dts && st->cur_dts != AV_NOPTS_VALUE && -((!(s->oformat->flags & AVFMT_TS_NONSTRICT) && +((!(s->oformat->flags & (AVFMT_TS_NONSTRICT|AVFMT_NOTIMESTAMPS)) && st->codecpar->codec_type != AVMEDIA_TYPE_SUBTITLE && st->codecpar->codec_type != AVMEDIA_TYPE_DATA && st->cur_dts >= pkt->dts) || st->cur_dts > pkt->dts)) { -- 2.16.1.windows.4 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel