From 1ae02fe03ba4dbdb875a8b8a84abc6a242cd85ca Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Tue, 18 Jan 2011 07:38:50 -0500 Subject: [PATCH] Fix bug in voc demuxer that was introduced in SVN r26309. Fixes issue 2560. --- libavformat/vocdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)