From afcf24746481069db8d321fddf67d6da26e46319 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Fri, 29 Jul 2022 18:05:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84mpegts/ps=E5=AE=B9=E5=99=A8?= =?UTF-8?q?=E5=AF=B9aac=E9=9F=B3=E9=A2=91=E7=9A=84=E5=85=BC=E5=AE=B9:=20#1?= =?UTF-8?q?801?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/Decoder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Rtp/Decoder.cpp b/src/Rtp/Decoder.cpp index 02b6e98c..fb530d78 100644 --- a/src/Rtp/Decoder.cpp +++ b/src/Rtp/Decoder.cpp @@ -123,6 +123,7 @@ void DecoderImp::onStream(int stream, int codecid, const void *extra, size_t byt break; } + case PSI_STREAM_MPEG4_AAC : case PSI_STREAM_AAC: { onTrack(std::make_shared()); break; @@ -182,6 +183,7 @@ void DecoderImp::onDecode(int stream,int codecid,int flags,int64_t pts,int64_t d break; } + case PSI_STREAM_MPEG4_AAC : case PSI_STREAM_AAC: { uint8_t *ptr = (uint8_t *)data; if(!(bytes > 7 && ptr[0] == 0xFF && (ptr[1] & 0xF0) == 0xF0)){