mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-19 09:02:26 +02:00
Fix bug in voc demuxer that was introduced in SVN r26309.
Fixes issue 2560.
This commit is contained in:
parent
d425a03b59
commit
1ae02fe03b
@ -117,7 +117,7 @@ voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
|
|||||||
dec->sample_rate = get_le32(pb);
|
dec->sample_rate = get_le32(pb);
|
||||||
dec->bits_per_coded_sample = get_byte(pb);
|
dec->bits_per_coded_sample = get_byte(pb);
|
||||||
dec->channels = 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)
|
if (dec->codec_id == CODEC_ID_NONE)
|
||||||
dec->codec_id = tmp_codec;
|
dec->codec_id = tmp_codec;
|
||||||
else if (dec->codec_id != tmp_codec)
|
else if (dec->codec_id != tmp_codec)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user