avformat/matroskaenc: Allow VP9 and Opus in webm
authorTudor Suciu <tudor.suciu@gmail.com>
Sun, 2 Jun 2013 15:49:24 +0000 (17:49 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Jul 2013 22:10:50 +0000 (00:10 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/matroskaenc.c

index f34813c..dfbb174 100644 (file)
@@ -619,9 +619,11 @@ static int mkv_write_tracks(AVFormatContext *s)
         }
 
         if (mkv->mode == MODE_WEBM && !(codec->codec_id == AV_CODEC_ID_VP8 ||
+                                        codec->codec_id == AV_CODEC_ID_VP9 ||
+                                      ((codec->codec_id == AV_CODEC_ID_OPUS)&&(codec->strict_std_compliance <= FF_COMPLIANCE_EXPERIMENTAL)) ||
                                         codec->codec_id == AV_CODEC_ID_VORBIS)) {
             av_log(s, AV_LOG_ERROR,
-                   "Only VP8 video and Vorbis audio are supported for WebM.\n");
+                   "Only VP8,VP9 video and Vorbis,Opus(experimental, use -strict -2) audio are supported for WebM.\n");
             return AVERROR(EINVAL);
         }