aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-01-18 07:38:50 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2011-01-18 12:15:36 -0500
commit1ae02fe03ba4dbdb875a8b8a84abc6a242cd85ca (patch)
tree4e5b9b5de103b312e275087e64e7b730f0065d25
parentd425a03b591f0d458a85b0fc8d559c4b4a0e7d14 (diff)
downloadffmpeg-1ae02fe03ba4dbdb875a8b8a84abc6a242cd85ca.tar.gz
Fix bug in voc demuxer that was introduced in SVN r26309.
Fixes issue 2560.
-rw-r--r--libavformat/vocdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c
index aa69dd2fdf..7cc37f0323 100644
--- a/libavformat/vocdec.c
+++ b/libavformat/vocdec.c
@@ -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)