修复bug

This commit is contained in:
xia-chu
2021-02-09 14:01:10 +08:00
parent e4904623a7
commit b7f4eae2bc
6 changed files with 7 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ TSDecoder::~TSDecoder() {
ts_demuxer_destroy(_demuxer_ctx);
}
size_t TSDecoder::input(const uint8_t *data, size_t bytes) {
ssize_t TSDecoder::input(const uint8_t *data, size_t bytes) {
if (TSSegment::isTSPacket((char *)data, bytes)) {
return ts_demuxer_input(_demuxer_ctx, (uint8_t *) data, bytes);
}