Fix bug in voc demuxer that was introduced in SVN r26309.
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 18 Jan 2011 12:38:50 +0000 (07:38 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Tue, 18 Jan 2011 17:15:36 +0000 (12:15 -0500)
Fixes issue 2560.

libavformat/vocdec.c

index aa69dd2..7cc37f0 100644 (file)
@@ -117,7 +117,7 @@ voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
             dec->sample_rate = get_le32(pb);
             dec->bits_per_coded_sample = get_byte(pb);
             dec->channels = get_byte(pb);
-            tmp_codec = ff_codec_get_id(ff_voc_codec_tags, get_byte(pb));
+            tmp_codec = ff_codec_get_id(ff_voc_codec_tags, get_le16(pb));
             if (dec->codec_id == CODEC_ID_NONE)
                 dec->codec_id = tmp_codec;
             else if (dec->codec_id != tmp_codec)