Commit f188a023 authored by Jan Schmidt's avatar Jan Schmidt
Browse files

typefind: Make the H.264 typefind a tiny bit more lenient.

When we see prefix NALs before a Subset SPS has been spotted,
it might just be because the stream was truncated at the
start, so don't count those as either 'bad' or 'good' packets.
parent 897371ac
...@@ -2668,7 +2668,11 @@ h264_video_type_find (GstTypeFind * tf, gpointer unused) ...@@ -2668,7 +2668,11 @@ h264_video_type_find (GstTypeFind * tf, gpointer unused)
if (nut == 15) { if (nut == 15) {
seen_ssps = TRUE; seen_ssps = TRUE;
good++; good++;
} else if (seen_ssps && (nut == 14 || nut == 20)) { } else if (nut == 14 || nut == 20) {
/* Sometimes we see NAL 14 or 20 without SSPS
* if dropped into the middle of a stream -
* just ignore those (don't add to bad count) */
if (seen_ssps)
good++; good++;
} else { } else {
/* reserved */ /* reserved */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment