Skip to content

Commit

Permalink
[muxerMp4] Set track enabled flag for all audio tracks to appease VLC
Browse files Browse the repository at this point in the history
  • Loading branch information
eumagga0x2a committed Jun 9, 2019
1 parent 513b3be commit f07fdd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion avidemux_plugins/ADM_muxers/muxerMp4/muxerMP4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ bool muxerMP4::open(const char *file, ADM_videoStream *s,uint32_t nbAudioTrack,A
printf("[MP4] Failed to init audio\n");
return false;
}

// Mark all audio tracks as enabled, VLC is picky about that.
for(int i=0;i<nbAudioTrack;i++)
{
audio_st[i]->disposition |= AV_DISPOSITION_DEFAULT;
}
// /audio
int er = avio_open(&(oc->pb), file, AVIO_FLAG_WRITE);

Expand Down

0 comments on commit f07fdd7

Please sign in to comment.