[FFmpeg-cvslog] avcodec/hevc_sei: fix use of uninitialized variables in decode_nal_sei_frame_packing_arrangement ()
Michael Niedermayer
git at videolan.org
Fri Dec 13 00:15:00 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Dec 12 23:51:39 2013 +0100| [180a0b1bcb522dab0ad828d8efb9673a6531d534] | committer: Michael Niedermayer
avcodec/hevc_sei: fix use of uninitialized variables in decode_nal_sei_frame_packing_arrangement()
Fixes CID1135773/1135774/1135775
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=180a0b1bcb522dab0ad828d8efb9673a6531d534
---
libavcodec/hevc_sei.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c
index 28a1ff8..4fa509c 100644
--- a/libavcodec/hevc_sei.c
+++ b/libavcodec/hevc_sei.c
@@ -52,7 +52,10 @@ static void decode_nal_sei_decoded_picture_hash(HEVCContext *s)
static void decode_nal_sei_frame_packing_arrangement(HEVCContext *s)
{
GetBitContext *gb = &s->HEVClc->gb;
- int cancel, type, quincunx, content;
+ int cancel;
+ int quincunx = 0;
+ int content = -1;
+ int type = -1;
get_ue_golomb(gb); // frame_packing_arrangement_id
cancel = get_bits1(gb); // frame_packing_cancel_flag
More information about the ffmpeg-cvslog
mailing list