Commit c54b4cd2 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

codec-utils: H264 level idc 0 is not valid

Don't put level=0 into the caps, it confuses other elements.

https://bugzilla.gnome.org/show_bug.cgi?id=765538
parent 2e90e69d
......@@ -538,7 +538,9 @@ gst_codec_utils_h264_get_level (const guint8 * sps, guint len)
csf3 = (sps[1] & 0x10) >> 4;
if ((sps[2] == 11 && csf3) || sps[2] == 9)
if (sps[2] == 0)
return NULL;
else if ((sps[2] == 11 && csf3) || sps[2] == 9)
return "1b";
else if (sps[2] % 10 == 0)
return digit_to_string (sps[2] / 10);
......
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