OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8f0804
)
avcodec/hevc_ps: Always initialize backup in decode_vui()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 6 Sep 2014 10:40:34 +0000
(12:40 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 6 Sep 2014 19:36:56 +0000
(21:36 +0200)
Fixes CID1237283
Reviewed-by: Christophe Gisquet <christophe.gisquet@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hevc_ps.c
patch
|
blob
|
history
diff --git
a/libavcodec/hevc_ps.c
b/libavcodec/hevc_ps.c
index
365652c
..
c17ca04
100644
(file)
--- 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