Skip to content

Commit

Permalink
[demuxers/MpegTS] Fix audio being silent during the first GOP
Browse files Browse the repository at this point in the history
  • Loading branch information
eumagga0x2a committed Aug 6, 2018
1 parent cfe55cf commit ceaae65
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions avidemux_plugins/ADM_demuxers/MpegTS/ADM_tsReadIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ extern uint8_t mk_hex(uint8_t a, uint8_t b);;
bool tsHeader::readIndex(indexFile *index)
{
char buffer[TS_MAX_LINE];
bool firstAudio=true;
printf("[TsDemuxerer] Reading index\n");
if(!index->goToSection("Data")) return false;

Expand All @@ -53,10 +52,7 @@ bool firstAudio=true;
}
if(!strncmp(buffer,"Audio ",6))
{
if(firstAudio)
firstAudio=false; // Ignore first line
else
processAudioIndex(buffer+6);
processAudioIndex(buffer+6);
}
}
return true;
Expand Down

0 comments on commit ceaae65

Please sign in to comment.