aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMats Peterson <matsp888@yahoo.com>2016-01-06 04:16:32 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-01-06 14:45:52 +0100
commit6a975cb07f40c5796459b1aa1961c8eafbd96854 (patch)
treed6fc593df261a896eb052ac724beec88d9dabe0f /libavformat
parentfc703f53cf3b0ca3806ecbf20d456f36b04249af (diff)
downloadffmpeg-6a975cb07f40c5796459b1aa1961c8eafbd96854.tar.gz
lavf/matroskadec: correct codec_tag for "SMI" SVQ3 files
This corrects the codec_tag for some SVQ3 files Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/matroskadec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 9de7cfba74..d958296a26 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1878,8 +1878,10 @@ static int matroska_parse_tracks(AVFormatContext *s)
fourcc = AV_RL32(track->codec_priv.data);
codec_id = ff_codec_get_id(ff_codec_movvideo_tags, fourcc);
}
- if (codec_id == AV_CODEC_ID_NONE && AV_RL32(track->codec_priv.data+4) == AV_RL32("SMI "))
- codec_id = AV_CODEC_ID_SVQ3;
+ if (codec_id == AV_CODEC_ID_NONE && AV_RL32(track->codec_priv.data+4) == AV_RL32("SMI ")) {
+ fourcc = MKTAG('S','V','Q','3');
+ codec_id = ff_codec_get_id(ff_codec_movvideo_tags, fourcc);
+ }
if (codec_id == AV_CODEC_ID_NONE) {
char buf[32];
av_get_codec_tag_string(buf, sizeof(buf), fourcc);