mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
Refine: h264 rtp encoder不再过滤sei、aud帧
This commit is contained in:
parent
01dbf8fdf2
commit
8b24088ab1
@ -268,10 +268,6 @@ void H264RtpEncoder::packRtpStapA(const char *ptr, size_t len, uint32_t pts, boo
|
|||||||
bool H264RtpEncoder::inputFrame(const Frame::Ptr &frame) {
|
bool H264RtpEncoder::inputFrame(const Frame::Ptr &frame) {
|
||||||
auto ptr = frame->data() + frame->prefixSize();
|
auto ptr = frame->data() + frame->prefixSize();
|
||||||
switch (H264_TYPE(ptr[0])) {
|
switch (H264_TYPE(ptr[0])) {
|
||||||
case H264Frame::NAL_AUD:
|
|
||||||
case H264Frame::NAL_SEI : {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
case H264Frame::NAL_SPS: {
|
case H264Frame::NAL_SPS: {
|
||||||
_sps = Frame::getCacheAbleFrame(frame);
|
_sps = Frame::getCacheAbleFrame(frame);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user