diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 83c985393a..05ad5c204a 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -2136,7 +2136,6 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps) } if (G_UNLIKELY (modified || h264parse->update_caps)) { - GstVideoInterlaceMode imode = GST_VIDEO_INTERLACE_MODE_PROGRESSIVE; gint width, height; GstClockTime latency = 0; @@ -2225,17 +2224,6 @@ gst_h264_parse_update_src_caps (GstH264Parse * h264parse, GstCaps * caps) latency); } - /* upstream overrides or uses sps info */ - if (s && gst_structure_has_field (s, "interlace-mode")) - imode = - gst_video_interlace_mode_from_string (gst_structure_get_string (s, - "interlace-mode")); - else if (sps->frame_mbs_only_flag == 0) - imode = GST_VIDEO_INTERLACE_MODE_MIXED; - - gst_caps_set_simple (caps, "interlace-mode", G_TYPE_STRING, - gst_video_interlace_mode_to_string (imode), NULL); - bit_depth_chroma = sps->bit_depth_chroma_minus8 + 8; switch (sps->chroma_format_idc) {