formats: Remove warnings from h26x

This commit is contained in:
Joni Räsänen 2022-03-31 14:48:59 +03:00
parent c8e7b8f687
commit d44936d0e5
2 changed files with 6 additions and 6 deletions

View File

@ -838,9 +838,9 @@ void uvgrtp::formats::h26x::scl(uint8_t* data, size_t data_len, size_t packet_si
packet_size -= get_payload_header_size(); // aggregate packet has a payload header
while (offset != -1) {
while (offset > -1) {
nal_info nal;
nal.offset = offset;
nal.offset = size_t(offset);
nal.prefix_len = start_len;
nal.size = 0; // set after all NALs have been found
nal.aggregate = false; // determined with size calculations
@ -854,7 +854,7 @@ void uvgrtp::formats::h26x::scl(uint8_t* data, size_t data_len, size_t packet_si
int aggregatable_packets = 0;
// calculate the sizes of NAL units
for (ssize_t i = 0; i < nals.size(); ++i)
for (size_t i = 0; i < nals.size(); ++i)
{
if (nals.size() > i + 1)
{

View File

@ -60,9 +60,9 @@ namespace uvgrtp {
struct nal_info
{
ssize_t offset = 0;
ssize_t prefix_len = 0;
ssize_t size = 0;
size_t offset = 0;
size_t prefix_len = 0;
size_t size = 0;
bool aggregate = false;
};