h264parse: set field_pic_flag when parsing a slice header
authorAurélien Zanelli <aurelien.zanelli@parrot.com>
Mon, 19 May 2014 09:48:55 +0000 (11:48 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 22 May 2014 13:54:04 +0000 (15:54 +0200)
field_pic_flag was used but never set to other value than its default

https://bugzilla.gnome.org/show_bug.cgi?id=730363

gst/videoparsers/gsth264parse.c

index f88d89d..ac499e0 100644 (file)
@@ -609,6 +609,8 @@ gst_h264_parse_process_nal (GstH264Parse * h264parse, GstH264NalUnit * nalu)
         if (pres == GST_H264_PARSER_OK) {
           if (GST_H264_IS_I_SLICE (&slice) || GST_H264_IS_SI_SLICE (&slice))
             h264parse->keyframe |= TRUE;
+
+          h264parse->field_pic_flag = slice.field_pic_flag;
         }
       }
       if (G_LIKELY (nal_type != GST_H264_NAL_SLICE_IDR &&