[FFmpeg-cvslog] avformat/rtpdec_mpeg4: add need_parsing for rtsp AAC

Jack Lau via ffmpeg-devel git at videolan.org
Wed Apr 16 14:10:35 EEST 2025


ffmpeg | branch: master | Jack Lau via ffmpeg-devel <ffmpeg-devel at ffmpeg.org> | Wed Apr  9 08:07:21 2025 +0800| [cf7dfddee4068c65811965dcea42d9a86c104bca] | committer: Michael Niedermayer

avformat/rtpdec_mpeg4: add need_parsing for rtsp AAC

fix ticket #11531

the rtsp aac did not marked keyframe which cannot easy copy to output.
because f265f9c9d04863180503707bfad285f48e6bf080 commit change the AAC props to match xHE-AAC.
in some formats like MOV, need_parsing is set, so AAC can be still parsed be keyframe
but rtsp did not, so this patch add it

Signed-off-by: Jack Lau <jacklau1222 at qq.com>
Reviewed-by: Zhao Zhili <quinkblack at foxmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cf7dfddee4068c65811965dcea42d9a86c104bca
---

 libavformat/rtpdec_mpeg4.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtpdec_mpeg4.c b/libavformat/rtpdec_mpeg4.c
index 6531632b2d..c506bcbed1 100644
--- a/libavformat/rtpdec_mpeg4.c
+++ b/libavformat/rtpdec_mpeg4.c
@@ -363,6 +363,7 @@ const RTPDynamicProtocolHandler ff_mpeg4_generic_dynamic_handler = {
     .enc_name           = "mpeg4-generic",
     .codec_type         = AVMEDIA_TYPE_AUDIO,
     .codec_id           = AV_CODEC_ID_AAC,
+    .need_parsing       = AVSTREAM_PARSE_HEADERS,
     .priv_data_size     = sizeof(PayloadContext),
     .parse_sdp_a_line   = parse_sdp_line,
     .close              = close_context,



More information about the ffmpeg-cvslog mailing list