gst/typefind/gsttypefindfunctions.c: For looking at the 4th byte we have to get 4 bytes of course and not 3.

Original commit message from CVS:
* gst/typefind/gsttypefindfunctions.c: (flac_type_find):
For looking at the 4th byte we have to get 4 bytes of course
and not 3.
This commit is contained in:
Sebastian Dröge 2008-10-13 08:00:55 +00:00
parent 862fd1d50f
commit d0d588ff6f
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-10-13 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/typefind/gsttypefindfunctions.c: (flac_type_find):
For looking at the 4th byte we have to get 4 bytes of course
and not 3.
2008-10-13 Sebastian Dröge <sebastian.droege@collabora.co.uk> 2008-10-13 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* gst/typefind/gsttypefindfunctions.c: (flac_type_find): * gst/typefind/gsttypefindfunctions.c: (flac_type_find):

View file

@ -541,7 +541,7 @@ flac_type_find (GstTypeFind * tf, gpointer unused)
/* flac without headers */ /* flac without headers */
/* 64K should be enough */ /* 64K should be enough */
while (c.offset < (64 * 1024)) { while (c.offset < (64 * 1024)) {
if (G_UNLIKELY (!data_scan_ctx_ensure_data (tf, &c, 3))) if (G_UNLIKELY (!data_scan_ctx_ensure_data (tf, &c, 4)))
break; break;
if (data[0] == 0xff && (data[1] >> 2) == 0x3e) { if (data[0] == 0xff && (data[1] >> 2) == 0x3e) {