更新第三方库

This commit is contained in:
xiongziliang 2020-10-18 21:33:36 +08:00
parent fcf641dfb6
commit 51fcaeda4c
4 changed files with 4 additions and 1 deletions

@ -1 +1 @@
Subproject commit d54285e96260e6d56d68929ec9ace402b83ff6b0 Subproject commit b878e869f995855d09013585de686e6a7330bd43

View File

@ -172,6 +172,7 @@ void TsMuxer::init() {
TsMuxer *muxer = (TsMuxer *) param; TsMuxer *muxer = (TsMuxer *) param;
muxer->onTs(packet, bytes, muxer->_timestamp, muxer->_is_idr_fast_packet); muxer->onTs(packet, bytes, muxer->_timestamp, muxer->_is_idr_fast_packet);
muxer->_is_idr_fast_packet = false; muxer->_is_idr_fast_packet = false;
return 0;
} }
}; };
if (_context == nullptr) { if (_context == nullptr) {

View File

@ -26,6 +26,7 @@ PSDecoder::PSDecoder() {
if(thiz->_on_decode){ if(thiz->_on_decode){
thiz->_on_decode(stream, codecid, flags, pts, dts, data, bytes); thiz->_on_decode(stream, codecid, flags, pts, dts, data, bytes);
} }
return 0;
},this); },this);
} }

View File

@ -38,6 +38,7 @@ void PSEncoder::init() {
[](void *param, int stream, void *packet, size_t bytes) { [](void *param, int stream, void *packet, size_t bytes) {
PSEncoder *thiz = (PSEncoder *) param; PSEncoder *thiz = (PSEncoder *) param;
thiz->onPS(thiz->_timestamp, packet, bytes); thiz->onPS(thiz->_timestamp, packet, bytes);
return 0;
} }
}; };