diff options
| author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-03-16 18:45:03 +0000 |
|---|---|---|
| committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-03-16 18:45:03 +0000 |
| commit | 25246f7e477eebe1cfd25741ba4744cc3b577684 (patch) | |
| tree | 63a893259b1183177e7166acd65b6e9926690fb4 /apps/plugin.h | |
| parent | 8c46ddf9d719fb29f483dc21993167907953f39c (diff) | |
| download | rockbox-25246f7e477eebe1cfd25741ba4744cc3b577684.zip rockbox-25246f7e477eebe1cfd25741ba4744cc3b577684.tar.gz rockbox-25246f7e477eebe1cfd25741ba4744cc3b577684.tar.bz2 rockbox-25246f7e477eebe1cfd25741ba4744cc3b577684.tar.xz | |
More robust implementation of MPEG frame header search. The parser will not only search for the very first byte sequence that looks like a valid MPEG frame header. It will search for a valid MPEG frame header sequence, decode it, and probe if there is a consecutive MPEG frame header of the same type (MPEG version, layer, sampling frequency) at the expected position. This approach will reduce false detection of MPEG frame headers in case of errorous metadata or garbaged files. Fixes FS#12007.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29603 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index de720d4..13b66e1 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -819,7 +819,7 @@ struct plugin_api { unsigned long rec_time, unsigned long header_template, void (*progressfunc)(int), bool generate_toc); unsigned long (*find_next_frame)(int fd, long *offset, - long max_offset, unsigned long last_header); + long max_offset, unsigned long reference_header); #if (CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F) unsigned short (*peak_meter_scale_value)(unsigned short val, |