aboutsummaryrefslogtreecommitdiffstats
path: root/audio/mp3guessenc/files
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2005-10-01 21:28:47 +0800
committermnag <mnag@FreeBSD.org>2005-10-01 21:28:47 +0800
commit287785629254b36f13e5c8d53e35b9b2656f54d9 (patch)
tree3d07e89a424a658ae8d54c2e33eeaff241a707cc /audio/mp3guessenc/files
parente72f19163215dfdf6368fc94815a2ff94e6d1ee9 (diff)
downloadfreebsd-ports-gnome-287785629254b36f13e5c8d53e35b9b2656f54d9.tar.gz
freebsd-ports-gnome-287785629254b36f13e5c8d53e35b9b2656f54d9.tar.zst
freebsd-ports-gnome-287785629254b36f13e5c8d53e35b9b2656f54d9.zip
New port
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)
Diffstat (limited to 'audio/mp3guessenc/files')
-rw-r--r--audio/mp3guessenc/files/patch-mp3guessenc.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/mp3guessenc/files/patch-mp3guessenc.c b/audio/mp3guessenc/files/patch-mp3guessenc.c
new file mode 100644
index 000000000000..294b8c30e67b
--- /dev/null
+++ b/audio/mp3guessenc/files/patch-mp3guessenc.c
@@ -0,0 +1,22 @@
+--- 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);