aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-04-15 21:33:44 -0300
committerJames Almer <jamrial@gmail.com>2018-04-16 10:50:38 -0300
commit6c95a26c1a5fd046d0479f9bcdc6e61b3b8d1adb (patch)
treef43768667a680898df9e62defdbb9d4ee632c7ff
parentb6ec1812403547ba10dfb4c6be5ac276d19f4328 (diff)
downloadffmpeg-6c95a26c1a5fd046d0479f9bcdc6e61b3b8d1adb.tar.gz
avformat/movenc: forbid muxing AV1 streams until the spec is finished
This prevents creating potentially broken files, as both the AV1 and the AV1 in ISOMBFF specs are unfinished. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 62bdbb5ce0c54b9f73c9b2580467ab1e6d76b70b)
-rw-r--r--libavformat/movenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index d03d7906a1..dc5c842cb8 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -6081,6 +6081,10 @@ static int mov_init(AVFormatContext *s)
av_log(s, AV_LOG_ERROR, "VP9 only supported in MP4.\n");
return AVERROR(EINVAL);
}
+ } else if (track->par->codec_id == AV_CODEC_ID_AV1) {
+ /* spec is not finished, so forbid for now */
+ av_log(s, AV_LOG_ERROR, "AV1 muxing is currently not supported.\n");
+ return AVERROR_PATCHWELCOME;
} else if (track->par->codec_id == AV_CODEC_ID_VP8) {
/* altref frames handling is not defined in the spec as of version v1.0,
* so just forbid muxing VP8 streams altogether until a new version does */