mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
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
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* gst/typefind/gsttypefindfunctions.c: (flac_type_find):
|
||||
|
|
|
@ -541,7 +541,7 @@ flac_type_find (GstTypeFind * tf, gpointer unused)
|
|||
/* flac without headers */
|
||||
/* 64K should be enough */
|
||||
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;
|
||||
|
||||
if (data[0] == 0xff && (data[1] >> 2) == 0x3e) {
|
||||
|
|
Loading…
Reference in a new issue