1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

xan: return a meaningful error code.

This commit is contained in:
Anton Khirnov 2012-11-16 06:36:15 +01:00
parent 4aebb8d999
commit d47dabbac2

View File

@ -114,7 +114,7 @@ static int xan_huffman_decode(unsigned char *dest, int dest_len,
while (val != 0x16) {
unsigned idx = val - 0x17 + get_bits1(&gb) * byte;
if (idx >= 2 * byte)
return -1;
return AVERROR_INVALIDDATA;
val = src[idx];
if (val < 0x16) {