[FFmpeg-cvslog] Fix bug in voc demuxer that was introduced in SVN r26309.

Justin Ruggles git
Tue Jan 18 18:16:05 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Jan 18 07:38:50 2011 -0500| [1ae02fe03ba4dbdb875a8b8a84abc6a242cd85ca] | committer: Justin Ruggles

Fix bug in voc demuxer that was introduced in SVN r26309.

Fixes issue 2560.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ae02fe03ba4dbdb875a8b8a84abc6a242cd85ca
---

 libavformat/vocdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/vocdec.c b/libavformat/vocdec.c
index aa69dd2..7cc37f0 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)




More information about the ffmpeg-cvslog mailing list