avcodecmap: Fix boolean expression to fix uninitialized usage of variables
authorSebastian Dröge <slomo@circular-chaos.org>
Mon, 23 Sep 2013 13:19:51 +0000 (15:19 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Sat, 28 Sep 2013 18:39:15 +0000 (20:39 +0200)
ext/libav/gstavcodecmap.c

index 4818329..00816ed 100644 (file)
@@ -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);