diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index b374b72116..089b5a7878 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -1040,16 +1040,6 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps) /* negotiate with downstream, sets ->format and ->align */ gst_h264_parse_negotiate (h264parse); - /* if upstream sets codec_data without setting stream-format and alignment, we - * assume stream-format=avc,alignment=au */ - if (format == GST_H264_PARSE_FORMAT_NONE) { - if (codec_data == NULL) - goto unknown_input_format; - - format = GST_H264_PARSE_FORMAT_AVC; - align = GST_H264_PARSE_ALIGN_AU; - } - if (format == h264parse->format && align == h264parse->align) { gst_base_parse_set_passthrough (parse, TRUE); @@ -1082,11 +1072,6 @@ wrong_type: GST_DEBUG_OBJECT (h264parse, "wrong codec-data type"); goto refuse_caps; } -unknown_input_format: - { - GST_DEBUG_OBJECT (h264parse, "unknown stream-format and no codec_data"); - goto refuse_caps; - } refuse_caps: { GST_WARNING_OBJECT (h264parse, "refused caps %" GST_PTR_FORMAT, caps);