Mercurial > libavcodec.hg
changeset 8770:f14d50df103f libavcodec
VP3: Do not ignore error from read_huffman_tree().
author | alexc |
---|---|
date | Mon, 09 Feb 2009 01:39:33 +0000 |
parents | 6fc3497dc81f |
children | f7442819cacf |
files | vp3.c |
diffstat | 1 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/vp3.c Mon Feb 09 00:18:26 2009 +0000 +++ b/vp3.c Mon Feb 09 01:39:33 2009 +0000 @@ -2014,9 +2014,11 @@ } s->huff_code_size++; s->hbits <<= 1; - read_huffman_tree(avctx, gb); + if (read_huffman_tree(avctx, gb)) + return -1; s->hbits |= 1; - read_huffman_tree(avctx, gb); + if (read_huffman_tree(avctx, gb)) + return -1; s->hbits >>= 1; s->huff_code_size--; } @@ -2192,9 +2194,11 @@ s->huff_code_size = 1; if (!get_bits1(gb)) { s->hbits = 0; - read_huffman_tree(avctx, gb); + if(read_huffman_tree(avctx, gb)) + return -1; s->hbits = 1; - read_huffman_tree(avctx, gb); + if(read_huffman_tree(avctx, gb)) + return -1; } } @@ -2250,7 +2254,8 @@ // theora_decode_comments(avctx, gb); break; case 0x82: - theora_decode_tables(avctx, &gb); + if (theora_decode_tables(avctx, &gb)) + return -1; break; default: av_log(avctx, AV_LOG_ERROR, "Unknown Theora config packet: %d\n", ptype&~0x80);