h264parse: Remove dead code

The detection for missing format/alignment is done way before this
codepath is reached (at which point we have already decided of a
format and alignment).

CID #1232800
This commit is contained in:
Edward Hervey 2015-04-20 14:35:19 +02:00 committed by Edward Hervey
parent 1ce65e2f74
commit 8ba1fbbe64

View file

@ -2237,11 +2237,6 @@ gst_h264_parse_set_caps (GstBaseParse * parse, GstCaps * caps)
h264parse->packetized = FALSE;
/* we have 4 sync bytes */
h264parse->nal_length_size = 4;
if (format == GST_H264_PARSE_FORMAT_NONE) {
format = GST_H264_PARSE_FORMAT_BYTE;
align = GST_H264_PARSE_ALIGN_AU;
}
} else {
/* probably AVC3 without codec_data field, anything to do here? */
}