Commit b96c1cd7 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '0f9eb916'

* commit '0f9eb916':
  movenc: Include empty tracks in iods when writing fragmented mp4
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 894d1033 0f9eb916
......@@ -2427,7 +2427,7 @@ static int mov_write_iods_tag(AVIOContext *pb, MOVMuxContext *mov)
int audio_profile = mov->iods_audio_profile;
int video_profile = mov->iods_video_profile;
for (i = 0; i < mov->nb_streams; i++) {
if (mov->tracks[i].entry > 0) {
if (mov->tracks[i].entry > 0 || mov->flags & FF_MOV_FLAG_EMPTY_MOOV) {
has_audio |= mov->tracks[i].enc->codec_type == AVMEDIA_TYPE_AUDIO;
has_video |= mov->tracks[i].enc->codec_type == AVMEDIA_TYPE_VIDEO;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment