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

Justin Ruggles justin.ruggles
Tue Jan 18 18:16:26 CET 2011


On 01/18/2011 10:11 AM, Michael Niedermayer wrote:

> On Tue, Jan 18, 2011 at 07:45:31AM -0500, Justin Ruggles wrote:
>>
>> Fixes issue 2560.
>> ---
>>  libavformat/vocdec.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
> 
>>  vocdec.c |    2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 7d71a58c132ae8d4eb60ef3b20979720cff67f9a  0001-Fix-bug-in-voc-demuxer-that-was-introduced-in-SVN-r2.patch
>> 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));
> 
> lgtm


applied.



More information about the ffmpeg-devel mailing list