mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
1b3d2d021c
This is a command-line utility which tries to determine the encoder used to create an mp3 file. Each encoder has unique characteristics fingerprinted into each file. This program analyzes algorithms that are used in any given file and determines which encoder was used. For example the Xing encoder never uses short blocks. PR: 86768 Submitted by: Emanuel Haupt <ehaupt@critical.ch> Approved by: pav (mentor)
23 lines
553 B
C
23 lines
553 B
C
--- mp3guessenc.c.orig Sat Oct 1 00:34:43 2005
|
|
+++ mp3guessenc.c Sat Oct 1 00:38:22 2005
|
|
@@ -515,6 +515,7 @@
|
|
for(q--;q >= lame_string && *q == 'U';q--) *q = '\0';
|
|
|
|
LSEX_END:
|
|
+ {}
|
|
}
|
|
|
|
///////////////////////////////////////////////////////
|
|
@@ -541,7 +542,10 @@
|
|
for(i=0;i<256;i++) lame_string[i] = '\0';
|
|
|
|
input_file = fopen(argv[1],"rb");
|
|
- if (input_file == NULL) exit(0);
|
|
+ if (input_file == NULL) {
|
|
+ printf("Usage: mp3guessenc mp3file\n");
|
|
+ exit(0);
|
|
+ }
|
|
|
|
fseek(input_file,0,SEEK_END);
|
|
filesize = ftell(input_file);
|