h264parse: set field_pic_flag when parsing a slice header

field_pic_flag was used but never set to other value than its default

https://bugzilla.gnome.org/show_bug.cgi?id=730363
This commit is contained in:
Aurélien Zanelli 2014-05-19 11:48:55 +02:00 committed by Sebastian Dröge
parent 5b547a553d
commit a9dfa354f6

View 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 &&