1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-12-12 23:51:39 +01:00
parent 3dbf9afe85
commit 180a0b1bcb

View File

@ -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