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:
parent
862fd1d50f
commit
d0d588ff6f
@ -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):
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user