[FFmpeg-cvslog] avcodec/hevc_ps: Always initialize backup in decode_vui()
Michael Niedermayer
git at videolan.org
Sat Sep 6 21:42:54 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Sep 6 12:40:34 2014 +0200| [cbb277988afc7032e632393e2c96a70d4389ac4f] | committer: Michael Niedermayer
avcodec/hevc_ps: Always initialize backup in decode_vui()
Fixes CID1237283
Reviewed-by: Christophe Gisquet <christophe.gisquet at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cbb277988afc7032e632393e2c96a70d4389ac4f
---
libavcodec/hevc_ps.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 365652c..c17ca04 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
More information about the ffmpeg-cvslog
mailing list