[FFmpeg-devel,6/6] avformat/matroskadec: fix CodecID for WebVTT on Matroska

Submitted by James Almer on Sept. 22, 2018, 12:42 a.m.

Details

Message ID 20180922004219.1648-1-jamrial@gmail.com
State New
Headers show

Commit Message

James Almer Sept. 22, 2018, 12:42 a.m.
D_WEBVTT/* is only valid for WebM files.

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/matroska.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Patch hide | download patch | download mbox

diff --git a/libavformat/matroska.c b/libavformat/matroska.c
index 4d18d147fc..88575656c0 100644
--- a/libavformat/matroska.c
+++ b/libavformat/matroska.c
@@ -60,11 +60,7 @@  const CodecTags ff_mkv_codec_tags[]={
     {"A_VORBIS"         , AV_CODEC_ID_VORBIS},
     {"A_WAVPACK4"       , AV_CODEC_ID_WAVPACK},
 
-    {"D_WEBVTT/SUBTITLES"   , AV_CODEC_ID_WEBVTT},
-    {"D_WEBVTT/CAPTIONS"    , AV_CODEC_ID_WEBVTT},
-    {"D_WEBVTT/DESCRIPTIONS", AV_CODEC_ID_WEBVTT},
-    {"D_WEBVTT/METADATA"    , AV_CODEC_ID_WEBVTT},
-
+    {"S_TEXT/WEBVTT"    , AV_CODEC_ID_WEBVTT},
     {"S_TEXT/UTF8"      , AV_CODEC_ID_SUBRIP},
     {"S_TEXT/UTF8"      , AV_CODEC_ID_TEXT},
     {"S_TEXT/ASCII"     , AV_CODEC_ID_TEXT},