[FFmpeg-devel] [PATCH] movenc: Tag files generated with strict experimental with a warning
Vittorio Giovara
vittorio.giovara at gmail.com
Fri Dec 2 22:00:57 EET 2016
This will simplify identifying files that were generated with
unfinished/incomplete/non-standard specifications.
Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
---
libavformat/movenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index dc19838..c46bea9 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -5756,6 +5756,7 @@ static int mov_init(AVFormatContext *s)
FF_COMPLIANCE_EXPERIMENTAL);
return AVERROR_EXPERIMENTAL;
}
+ av_dict_set(&s->metadata, "WARNING", "This file was generated using an unfinished specification, please don't modify your demuxer to support it, should it not work", 0);
}
} else if (st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) {
track->timescale = st->codecpar->sample_rate;
@@ -5802,6 +5803,7 @@ static int mov_init(AVFormatContext *s)
FF_COMPLIANCE_EXPERIMENTAL);
return AVERROR_EXPERIMENTAL;
}
+ av_dict_set(&s->metadata, "WARNING", "This file was generated using an unfinished specification, please don't modify your demuxer to support it, should it not work", 0);
}
} else if (st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE) {
track->timescale = st->time_base.den;
--
2.10.0
More information about the ffmpeg-devel
mailing list