Commit ba0198a7 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '46d4d857'

* commit '46d4d857':
  movenc: Avoid writing separate flags for the first sample if not necessary
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents e8821e74 46d4d857
......@@ -3416,7 +3416,8 @@ static int mov_write_trun_tag(AVIOContext *pb, MOVMuxContext *mov,
if (i > 0 && get_sample_flags(track, &track->cluster[i]) != track->default_sample_flags)
flags |= MOV_TRUN_SAMPLE_FLAGS;
}
if (!(flags & MOV_TRUN_SAMPLE_FLAGS))
if (!(flags & MOV_TRUN_SAMPLE_FLAGS) && track->entry > 0 &&
get_sample_flags(track, &track->cluster[0]) != track->default_sample_flags)
flags |= MOV_TRUN_FIRST_SAMPLE_FLAGS;
if (track->flags & MOV_TRACK_CTTS)
flags |= MOV_TRUN_SAMPLE_CTS;
......
930cfa0d91434f46a8a197a2165a734a
eacd7d65ec75c5520f5108b0a885a995
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