mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
h264parse: 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
This commit is contained in:
parent
c7e0e8d6ab
commit
4bdda1d810
1 changed files with 3 additions and 1 deletions
|
@ -1623,7 +1623,9 @@ get_profile_string (GstH264SPS * sps)
|
|||
static const gchar *
|
||||
get_level_string (GstH264SPS * sps)
|
||||
{
|
||||
if ((sps->level_idc == 11 && sps->constraint_set3_flag)
|
||||
if (sps->level_idc == 0)
|
||||
return NULL;
|
||||
else if ((sps->level_idc == 11 && sps->constraint_set3_flag)
|
||||
|| sps->level_idc == 9)
|
||||
return "1b";
|
||||
else if (sps->level_idc % 10 == 0)
|
||||
|
|
Loading…
Reference in a new issue