mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
matroskaenc: Allow VP9 and Opus in webm
Bug-Id: 695 Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
f797b134ca
commit
d2ef708c95
@ -670,9 +670,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->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 or VP9 video and Vorbis or Opus audio are supported for WebM.\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user