[FFmpeg-devel] [PATCH 02/11] avformat/movenc: write stss boxes for xHE-AAC

James Almer jamrial at gmail.com
Mon Nov 18 04:04:14 EET 2024


This is in preparation for a following change.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/movenc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 4152149ec1..7563ff2628 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3201,6 +3201,7 @@ static int mov_write_stbl_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext
     if ((track->par->codec_type == AVMEDIA_TYPE_VIDEO ||
          track->par->codec_id == AV_CODEC_ID_TRUEHD ||
          track->par->codec_id == AV_CODEC_ID_MPEGH_3D_AUDIO ||
+         (track->par->codec_id == AV_CODEC_ID_AAC && track->par->profile == AV_PROFILE_AAC_USAC) ||
          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);
-- 
2.47.0



More information about the ffmpeg-devel mailing list