rockbox/lib/rbcodec/metadata
Solomon Peachy e94a96cdcf FS#13497: '0' is sometimes a valid track number
Most notably for CD rips that use a track number of 0 for
the leadin.

Therefore change our "invalid track number" canary to -1 instead
of 0.  Additionally don't try to parse an empty string.

In the process, get rid of redudant 'discnum = 0' as well.

NOTE: While not strictly necessary, we recommend rebuilding the
      database to ensure files without track numbers are
      updated with the new canary.

Change-Id: I543f98ca49cec7b5eeffa7c14c1eca57171f345a
2025-12-06 09:20:32 -05:00
..
a52.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
aac.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
adx.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
aiff.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
ape.c APEv2: AA: Fix a couple of bugs. 2025-09-16 20:29:32 -04:00
asap.c replace more strcmp if then trees with string_option() 2022-03-13 14:31:02 -04:00
asf.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
au.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
ay.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
flac.c metadata: opus, vorbis, speex: support embedded jpeg album art 2025-02-08 10:02:21 +02:00
gbs.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
hes.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
id3tags.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
kss.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
metadata.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
metadata.h Reapply "buffering: remove bufgettail/bufcuttail" 2025-05-26 10:59:56 -04:00
metadata_common.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
metadata_common.h metadata: opus, vorbis, speex: support embedded jpeg album art 2025-02-08 10:02:21 +02:00
metadata_parsers.h codecs: Add support for the 'VTX' ZX Spectrum chiptunes format. 2020-10-09 11:39:25 -04:00
mod.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
monkeys.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
mp3.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
mp3data.c metadata/mp3data.c init vars & add sanity checks 2021-08-11 22:40:09 -04:00
mp3data.h Build librbcodec with DSP and metadata. 2012-03-18 12:00:39 +01:00
mp4.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
mpc.c Remove ATRAC3 specific fields (channels, extradata_size) from mp3entry 2024-02-02 09:36:53 -05:00
nsf.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
ogg.c metadata: opus, vorbis, speex: support embedded jpeg album art 2025-02-08 10:02:21 +02:00
oma.c Remove ATRAC3 specific fields (channels, extradata_size) from mp3entry 2024-02-02 09:36:53 -05:00
replaygain.c strlcpy finish cleanup 2022-11-17 01:54:46 -05:00
replaygain.h Build librbcodec with DSP and metadata. 2012-03-18 12:00:39 +01:00
rm.c Remove ATRAC3 specific fields (channels, extradata_size) from mp3entry 2024-02-02 09:36:53 -05:00
sgc.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
sid.c metadata: sid: allow RSIDs as well 2023-02-07 09:19:32 -05:00
smaf.c metadata/smaf.c handle read errors 2021-08-07 02:53:28 +00:00
spc.c SPC Codec: Have metadata parser fill in frequency and bitrate. 2013-05-21 20:01:17 -04:00
tta.c FS#13497: '0' is sometimes a valid track number 2025-12-06 09:20:32 -05:00
vgm.c VGM Codec: Improve time and fade behavior. Tweak minor misc. 2013-03-06 19:47:05 -05:00
vorbis.c metadata: opus, vorbis, speex: Don't fill metadata buffer with album art and cuesheet 2025-04-01 08:33:16 -04:00
vox.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00
vtx.c metadata/vfx.c cleanup string and character handling 2021-08-07 04:50:14 +00:00
wave.c Remove ATRAC3 specific fields (channels, extradata_size) from mp3entry 2024-02-02 09:36:53 -05:00
wavpack.c Add rbcodecplatform.h and rbcodecconfig.h. 2012-05-03 14:49:35 +02:00