Skip to content

Commit

Permalink
shio: lavf/mov: Always write an stss box in CMAF mode
Browse files Browse the repository at this point in the history
  • Loading branch information
markogle authored and mtneug committed Mar 3, 2024
1 parent e6db444 commit 96678bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libavformat/movenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2907,6 +2907,10 @@ static int mov_write_stbl_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext
track->par->codec_tag == MKTAG('r','t','p',' ')) &&
track->has_keyframes && track->has_keyframes < track->entry)
mov_write_stss_tag(pb, track, MOV_SYNC_SAMPLE);
if (track->par->codec_type == AVMEDIA_TYPE_VIDEO &&
mov->flags & FF_MOV_FLAG_CMAF &&
!track->has_keyframes)
mov_write_stss_tag(pb, track, MOV_SYNC_SAMPLE);
if (track->par->codec_type == AVMEDIA_TYPE_VIDEO && track->has_disposable)
mov_write_sdtp_tag(pb, track);
if (track->mode == MODE_MOV && track->flags & MOV_TRACK_STPS)
Expand Down

0 comments on commit 96678bc

Please sign in to comment.