From 4a657acaefd599f3971e88419516a7f4ece00e53 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 14 Jul 2018 00:26:08 +0200 Subject: avcodec/cfhd: Use bytestream2 for peaks This fixes out of array accesses No testcase known Signed-off-by: Michael Niedermayer --- libavcodec/cfhd.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavcodec/cfhd.h') diff --git a/libavcodec/cfhd.h b/libavcodec/cfhd.h index 7cd251fca7..4f2c82d8bc 100644 --- a/libavcodec/cfhd.h +++ b/libavcodec/cfhd.h @@ -26,6 +26,7 @@ #include "libavutil/avassert.h" #include "avcodec.h" +#include "bytestream.h" #include "get_bits.h" #include "vlc.h" @@ -71,7 +72,7 @@ typedef struct Plane { typedef struct Peak { int level; int offset; - const int16_t *base; + GetByteContext base; } Peak; typedef struct CFHDContext { -- cgit v1.2.3