Mercurial > audlegacy-plugins
comparison src/madplug/plugin.c @ 782:6f519e34ddf0 trunk
[svn] - reject files which use Ogg container magic
author | nenolod |
---|---|
date | Mon, 05 Mar 2007 00:28:52 -0800 |
parents | 22c82f3c0411 |
children | 83a38bcfe7c8 |
comparison
equal
deleted
inserted
replaced
781:87bd9a74ca4f | 782:6f519e34ddf0 |
---|---|
245 | 245 |
246 check = mp3_head_convert(buf); | 246 check = mp3_head_convert(buf); |
247 | 247 |
248 if (memcmp(buf, "ID3", 3) == 0) | 248 if (memcmp(buf, "ID3", 3) == 0) |
249 return 1; | 249 return 1; |
250 else if (memcmp(buf, "OggS", 4) == 0) | |
251 return 0; | |
250 else if (memcmp(buf, "RIFF", 4) == 0) | 252 else if (memcmp(buf, "RIFF", 4) == 0) |
251 { | 253 { |
252 vfs_fseek(fin, 4, SEEK_CUR); | 254 vfs_fseek(fin, 4, SEEK_CUR); |
253 vfs_fread(buf, 1, 4, fin); | 255 vfs_fread(buf, 1, 4, fin); |
254 | 256 |