From: Sebastian Dröge Date: Mon, 23 Sep 2013 13:19:51 +0000 (+0200) Subject: avcodecmap: Fix boolean expression to fix uninitialized usage of variables X-Git-Tag: 1.3.1~75 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2daefd69b8c96da50f106179b351559b3c01926b;p=platform%2Fupstream%2Fgst-libav.git avcodecmap: Fix boolean expression to fix uninitialized usage of variables --- diff --git a/ext/libav/gstavcodecmap.c b/ext/libav/gstavcodecmap.c index 4818329..00816ed 100644 --- a/ext/libav/gstavcodecmap.c +++ b/ext/libav/gstavcodecmap.c @@ -2850,9 +2850,9 @@ gst_ffmpeg_caps_with_codecid (enum CodecID codec_id, gint halfpel_flag, thirdpel_flag, low_delay, unknown_svq3_flag; guint16 flags; - if (gst_structure_get_int (str, "halfpel_flag", &halfpel_flag) || - gst_structure_get_int (str, "thirdpel_flag", &thirdpel_flag) || - gst_structure_get_int (str, "low_delay", &low_delay) || + if (gst_structure_get_int (str, "halfpel_flag", &halfpel_flag) && + gst_structure_get_int (str, "thirdpel_flag", &thirdpel_flag) && + gst_structure_get_int (str, "low_delay", &low_delay) && gst_structure_get_int (str, "unknown_svq3_flag", &unknown_svq3_flag)) { context->extradata = (guint8 *) av_mallocz (0x64);