OSDN Git Service

fix inadvertent logic error in conditional
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Wed, 29 Nov 2017 18:17:11 +0000 (10:17 -0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 30 Nov 2017 19:10:49 +0000 (11:10 -0800)
The condition:

  slice_param->slice_type != SLICE_TYPE_I ||
    slice_param->slice_type != SLICE_TYPE_SI

...is always true.  This appears to be an inadvertent
logic error by original author.  The assumption is that
&& was the intention and makes more sense, thus change it
to us && instead of ||.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
src/i965_avc_bsd.c

index 36eeb7c..d422382 100644 (file)
@@ -844,7 +844,7 @@ i965_avc_bsd_pipeline(VADriverContextP ctx, struct decode_state *decode_state, v
                    (slice_param->slice_type == SLICE_TYPE_B));
 
             if (i965_h264_context->picture.i_flag &&
-                (slice_param->slice_type != SLICE_TYPE_I ||
+                (slice_param->slice_type != SLICE_TYPE_I &&
                  slice_param->slice_type != SLICE_TYPE_SI))
                 i965_h264_context->picture.i_flag = 0;