[FFmpeg-devel] [PATCH 3/9] lavc/vaapi_decode: fix uninitialized use of variables
Timo Rothenpieler
timo at rothenpieler.org
Wed Nov 8 20:17:47 EET 2017
Fixes CID #1419524 and #1412855
---
libavcodec/vaapi_decode.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index 27ef33837c..a782cfd8da 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -281,8 +281,9 @@ static int vaapi_decode_make_config(AVCodecContext *avctx)
VAStatus vas;
int err, i, j;
const AVCodecDescriptor *codec_desc;
- VAProfile profile, va_profile, *profile_list = NULL;
- int profile_count, exact_match, alt_profile;
+ VAProfile va_profile = VAProfileNone;
+ VAProfile profile, *profile_list = NULL;
+ int profile_count, exact_match, alt_profile = 0;
const AVPixFmtDescriptor *sw_desc, *desc;
codec_desc = avcodec_descriptor_get(avctx->codec_id);
--
2.14.2
More information about the ffmpeg-devel
mailing list