Browse Source

4xm: check the return value of read_huffman_tables().

CC:libav-stable@libav.org
tags/n1.2
Anton Khirnov 13 years ago
parent
commit
8097fc9a2d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/4xm.c

+ 4
- 0
libavcodec/4xm.c View File

@@ -721,6 +721,10 @@ static int decode_i_frame(FourXContext *f, const uint8_t *buf, int length)
}

prestream = read_huffman_tables(f, prestream);
if (!prestream) {
av_log(f->avctx, AV_LOG_ERROR, "Error reading Huffman tables.\n");
return AVERROR_INVALIDDATA;
}

init_get_bits(&f->gb, buf + 4, 8 * bitstream_size);



Loading…
Cancel
Save