History

matroskaenc: Allow VP9 and Opus in webm

Bug-Id: 695

Tudor Suciu committed 13 years ago

Commit d2ef7081 parent f797b131 file · +3 −1Browse files

Unified · Split

libavformat/matroskaenc.c+3−1
@@ -670,9 +670,11 @@ static int mkv_write_tracks(AVFormatContext *s) · 669 unmodified lines
670670 }
671671
672672 if (mkv->mode == MODE_WEBM && !(codec->codec_id == AV_CODEC_ID_VP8 ||
673+ codec->codec_id == AV_CODEC_ID_VP9 ||
674+ codec->codec_id == AV_CODEC_ID_OPUS ||
673675 codec->codec_id == AV_CODEC_ID_VORBIS)) {
674676 av_log(s, AV_LOG_ERROR,
675− "Only VP8 video and Vorbis audio are supported for WebM.\n");
677+ "Only VP8 or VP9 video and Vorbis or Opus audio are supported for WebM.\n");
676678 return AVERROR(EINVAL);
677679 }
678680

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t