From 8b24088ab1883662ab1b048d6568f9b6d45d65dd Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 28 Nov 2021 21:15:03 +0800 Subject: [PATCH] =?UTF-8?q?Refine:=20h264=20rtp=20encoder=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E8=BF=87=E6=BB=A4sei=E3=80=81aud=E5=B8=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extension/H264Rtp.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Extension/H264Rtp.cpp b/src/Extension/H264Rtp.cpp index 143d3a94..e28cfa3d 100644 --- a/src/Extension/H264Rtp.cpp +++ b/src/Extension/H264Rtp.cpp @@ -268,10 +268,6 @@ void H264RtpEncoder::packRtpStapA(const char *ptr, size_t len, uint32_t pts, boo bool H264RtpEncoder::inputFrame(const Frame::Ptr &frame) { auto ptr = frame->data() + frame->prefixSize(); switch (H264_TYPE(ptr[0])) { - case H264Frame::NAL_AUD: - case H264Frame::NAL_SEI : { - return false; - } case H264Frame::NAL_SPS: { _sps = Frame::getCacheAbleFrame(frame); return true;