diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-06 12:40:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-06 21:36:56 +0200 |
commit | cbb277988afc7032e632393e2c96a70d4389ac4f (patch) | |
tree | 59123f6dd47907196110756a706a11145e1fb961 | |
parent | d8f08047dc9a0cc99268db91bc17643010e7f517 (diff) | |
download | ffmpeg-cbb277988afc7032e632393e2c96a70d4389ac4f.tar.gz |
avcodec/hevc_ps: Always initialize backup in decode_vui()
Fixes CID1237283
Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/hevc_ps.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index 365652c225..c17ca04350 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -527,8 +527,7 @@ static void decode_vui(HEVCContext *s, HEVCSPS *sps) vui->default_display_window_flag = get_bits1(gb); // Backup context in case an alternate header is detected - if( get_bits_left(gb) >= 66) - memcpy(&backup, gb, sizeof(backup)); + memcpy(&backup, gb, sizeof(backup)); if (vui->default_display_window_flag) { //TODO: * 2 is only valid for 420 |