From ccfd7616596d4d4ae21d0e33b39e4f35d1cb9492 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Fri, 26 Aug 2011 16:05:58 +0200 Subject: [PATCH] codecparsers: h264: fix ref_pic_list_reordering(). --- gst-libs/gst/codecparsers/gsth264parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index ad7a067fb0..8e4e212537 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -720,7 +720,7 @@ slice_parse_ref_pic_list_reordering (GstH264SliceHdr * slice, NalReader * nr) { GST_DEBUG ("parsing \"Reference picture list reordering\""); - if (!(slice->type == GST_H264_I_SLICE) && !(slice->type == GST_H264_SI_SLICE)) { + if (!GST_H264_IS_I_SLICE (slice) && !GST_H264_IS_SI_SLICE (slice)) { guint8 ref_pic_list_reordering_flag_l0; guint32 reordering_of_pic_nums_idc; @@ -741,7 +741,7 @@ slice_parse_ref_pic_list_reordering (GstH264SliceHdr * slice, NalReader * nr) } while (reordering_of_pic_nums_idc != 3); } - if (slice->type == GST_H264_B_SLICE) { + if (GST_H264_IS_B_SLICE (slice)) { guint8 ref_pic_list_reordering_flag_l1; guint32 reordering_of_pic_nums_idc;