diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-07-14 00:26:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-07-18 13:59:25 +0200 |
commit | 4a657acaefd599f3971e88419516a7f4ece00e53 (patch) | |
tree | f5dc90b3750446ce1780a8c2f5f03f9fb27abb2a /libavcodec/cfhd.h | |
parent | 91578f5798d36467e8e2138eada5ce26c12b4e1e (diff) | |
download | ffmpeg-4a657acaefd599f3971e88419516a7f4ece00e53.tar.gz |
avcodec/cfhd: Use bytestream2 for peaks
This fixes out of array accesses
No testcase known
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cfhd.h')
-rw-r--r-- | libavcodec/cfhd.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |