[FFmpeg-cvslog] avformat/movenc: write stss boxes for xHE-AAC
James Almer
git at videolan.org
Sun Dec 1 18:47:36 EET 2024
ffmpeg | branch: release/7.1 | James Almer <jamrial at gmail.com> | Sat Nov 16 17:46:17 2024 -0300| [33588a37497bb26598234fc745eda52089c26761] | committer: James Almer
avformat/movenc: write stss boxes for xHE-AAC
This is in preparation for a following change.
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 23a1c021f299655d66bcfbd69ed0d6780f68c6fc)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=33588a37497bb26598234fc745eda52089c26761
---
libavformat/movenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index da58a7ab15..d6effda6fa 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3196,6 +3196,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);
More information about the ffmpeg-cvslog
mailing list