h264parser: do not assert on data input, just return

https://bugzilla.gnome.org/show_bug.cgi?id=674069
This commit is contained in:
Vincent Penquerc'h 2012-06-11 10:49:15 +01:00
parent b7e82b27be
commit 8800946aa3

View file

@ -326,7 +326,8 @@ nal_reader_get_ue (NalReader * nr, guint32 * val)
return FALSE; return FALSE;
} }
g_return_val_if_fail (i <= 32, FALSE); if (G_UNLIKELY (i > 32))
return FALSE;
if (G_UNLIKELY (!nal_reader_get_bits_uint32 (nr, &value, i))) if (G_UNLIKELY (!nal_reader_get_bits_uint32 (nr, &value, i)))
return FALSE; return FALSE;