On Sat, 16 Feb 2013, Anton Khirnov wrote:

CC:[email protected]
---
libavcodec/4xm.c |    4 ++++
1 file changed, 4 insertions(+)

diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index 66934db..270fada 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -723,6 +723,10 @@ static int decode_i_frame(FourXContext *f, AVFrame *frame, 
const uint8_t *buf, i
    }

    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);

--
1.7.10.4

Ok I guess, seems reasonable.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to