decoder: h264: clean-ups.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 10 Jun 2014 15:42:58 +0000 (17:42 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 10 Jun 2014 16:33:59 +0000 (18:33 +0200)
Fix GST_VAAPI_PICTURE_IS_{INTER_VIEW,ANCHOR}() definitions to use
the base GST_VAAPI_PICTURE_FLAG_IS_SET() macro.

gst-libs/gst/vaapi/gstvaapidecoder_h264.c

index 557f6dc..5cea099 100644 (file)
@@ -195,10 +195,10 @@ enum {
      GST_VAAPI_PICTURE_FLAG_LONG_TERM_REFERENCE)
 
 #define GST_VAAPI_PICTURE_IS_INTER_VIEW(picture) \
-    (GST_VAAPI_PICTURE_FLAGS(picture) & GST_VAAPI_PICTURE_FLAG_INTER_VIEW)
+    (GST_VAAPI_PICTURE_FLAG_IS_SET(picture, GST_VAAPI_PICTURE_FLAG_INTER_VIEW))
 
 #define GST_VAAPI_PICTURE_IS_ANCHOR(picture) \
-    (GST_VAAPI_PICTURE_FLAGS(picture) & GST_VAAPI_PICTURE_FLAG_ANCHOR)
+    (GST_VAAPI_PICTURE_FLAG_IS_SET(picture, GST_VAAPI_PICTURE_FLAG_ANCHOR))
 
 #define GST_VAAPI_PICTURE_H264(picture) \
     ((GstVaapiPictureH264 *)(picture))