diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-24 14:46:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-24 22:17:15 +0200 |
commit | 933aa91e31d5cbf9dbc0cf416a988e6011bc4a40 (patch) | |
tree | 6953e13b3c8779f7e7c7859b28e6e00f48860959 /libavcodec/hevcdec.h | |
parent | c1b43e8452e778edea757e912d17780df1ebd92d (diff) | |
download | ffmpeg-933aa91e31d5cbf9dbc0cf416a988e6011bc4a40.tar.gz |
avcodec/hevcdec: check ff_init_cabac_decoder() for failure
Fixes: runtime error: left shift of 1965559808 by 4 places cannot be represented in type 'int'
Fixes: 2333/clusterfuzz-testcase-minimized-5223935677300736
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/hevcdec.h')
-rw-r--r-- | libavcodec/hevcdec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevcdec.h b/libavcodec/hevcdec.h index 695ccfb591..293beb7083 100644 --- a/libavcodec/hevcdec.h +++ b/libavcodec/hevcdec.h @@ -508,7 +508,7 @@ int ff_hevc_frame_rps(HEVCContext *s); int ff_hevc_slice_rpl(HEVCContext *s); void ff_hevc_save_states(HEVCContext *s, int ctb_addr_ts); -void ff_hevc_cabac_init(HEVCContext *s, int ctb_addr_ts); +int ff_hevc_cabac_init(HEVCContext *s, int ctb_addr_ts); int ff_hevc_sao_merge_flag_decode(HEVCContext *s); int ff_hevc_sao_type_idx_decode(HEVCContext *s); int ff_hevc_sao_band_position_decode(HEVCContext *s); |