Skip to content

Commit 6608d03

Browse files
Skip first frame containing original file length
1 parent 09473e9 commit 6608d03

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
*~
22
*.o
33
cutmp3
4+
gmon.out
5+
gmon.txt

Makefile

-2
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,3 @@ uninstall:
5555

5656
prof:
5757
if [ ! -e "$(NAME)" ]; then gcc $(CFLAGS) $(DBGFLAGS) -pg -DVERSION=\"$(VERSION)\" main.c mpglib.c $(LDFLAGS) -o $(NAME); elif [ -e "gmon.out" ]; then gprof -c --inline-file-names $(NAME) gmon.out > gmon.txt; fi
58-
# [ -e "$(NAME)" ] || gcc $(CFLAGS) $(DBGFLAGS) -pg -DVERSION=\"$(VERSION)\" main.c mpglib.c $(LDFLAGS) -o $(NAME)
59-
# [ ! -e "gmon.out" ] || gprof -c --inline-file-names $(NAME) gmon.out > gmon.txt

main.c

+1
Original file line numberDiff line numberDiff line change
@@ -2969,6 +2969,7 @@ int main(int argc, char *argv[])
29692969
else audiobegin=inpoint;
29702970
}
29712971
if(audiobegin) audiobegin=nextframe(audiobegin-1); /* in case there is invalid data after an ID3 V2 tag */
2972+
audiobegin=nextframe(audiobegin); // Skip first frame containing original file length
29722973

29732974
startpos=inpoint=audiobegin;
29742975

0 commit comments

Comments
 (0)