]> git.sesse.net Git - ffmpeg/commitdiff
movenc: mark Opus encapsulation as stable
authorLynne <dev@lynne.ee>
Mon, 23 Mar 2020 22:03:24 +0000 (22:03 +0000)
committerLynne <dev@lynne.ee>
Fri, 27 Mar 2020 13:34:09 +0000 (13:34 +0000)
The specifications are de-facto frozen now as they've already been used in
production for years, the author has indicated reluctance on IRC to change
it further, and the only potential changes would, from what I understand,
be forward-compatible.

libavformat/movenc.c

index ce82acf91490e134d6963a6062337b7850c59161..1c178fc4bcac5cbd7f268c83e35ab27ab9706fb8 100644 (file)
@@ -6500,7 +6500,8 @@ static int mov_init(AVFormatContext *s)
                     av_log(s, AV_LOG_ERROR, "%s only supported in MP4.\n", avcodec_get_name(track->par->codec_id));
                     return AVERROR(EINVAL);
                 }
-                if (s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
+                if (track->par->codec_id != AV_CODEC_ID_OPUS &&
+                    s->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) {
                     av_log(s, AV_LOG_ERROR,
                            "%s in MP4 support is experimental, add "
                            "'-strict %d' if you want to use it.\n",