Skip to content
Permalink
Browse files

[audioIdentify/idMP2] Look for the max offset, not the first one

This should fix creating audio tracks from external mp3 files with id3v2 tags.
  • Loading branch information...
eumagga0x2a committed May 9, 2018
1 parent 1994678 commit 51a456328618c9bf0da1bc636f8df934f6a9d50c
Showing with 1 addition and 1 deletion.
  1. +1 −1 avidemux_core/ADM_coreAudio/src/ADM_audioIdentify.cpp
@@ -55,7 +55,7 @@ static bool idMP2(int bufferSize,const uint8_t *data,WAVHeader &info,uint32_t &o
ADM_info("\t no sync\n");
return false;
}
if(INVALID_OFFSET==offset) offset=syncoff;
if(INVALID_OFFSET==offset || syncoff>offset) offset=syncoff;
// Skip this packet
int next=probeIndex+syncoff+mp2info.size;
len=limit-next;

0 comments on commit 51a4563

Please sign in to comment.
You can’t perform that action at this time.