codecparsers: mpeg: relax entry constraint

... since it is acceptable and properly handled further on.
This commit is contained in:
Mark Nauwelaerts 2012-06-01 10:59:22 +02:00
parent dd5d96af83
commit 8d6aed5297

View file

@ -236,7 +236,6 @@ scan_for_start_codes (const GstByteReader * reader, guint offset, guint size)
const guint8 *data;
guint i = 0;
g_return_val_if_fail (size > 0, -1);
g_return_val_if_fail ((guint64) offset + size <= reader->size - reader->byte,
-1);