Skip to content
Snippets Groups Projects
Commit d47dabba authored by Anton Khirnov's avatar Anton Khirnov
Browse files

xan: return a meaningful error code.

parent 4aebb8d9
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment