Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

Commit bc4b16d

Browse files
committed
fix C100 build
1 parent 1f9845a commit bc4b16d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/JPEGWorker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int JPEGWorker::save_jpeg_stream(int fd, IMPEncoderStream *stream)
2929
void *data_ptr;
3030
size_t data_len;
3131

32-
#if defined(PLATFORM_T31) || defined(PLATFORM_T40) || defined(PLATFORM_T41)
32+
#if defined(PLATFORM_T31) || defined(PLATFORM_T40) || defined(PLATFORM_T41) || defined(PLATFORM_C100)
3333
IMPEncoderPack *pack = &stream->pack[i];
3434
uint32_t remSize = 0; // Declare remSize here
3535
if (pack->length)
@@ -57,7 +57,7 @@ int JPEGWorker::save_jpeg_stream(int fd, IMPEncoderStream *stream)
5757
return -1; // Return error on write failure
5858
}
5959

60-
#if defined(PLATFORM_T31) || defined(PLATFORM_T40) || defined(PLATFORM_T41)
60+
#if defined(PLATFORM_T31) || defined(PLATFORM_T40) || defined(PLATFORM_T41) || defined(PLATFORM_C100)
6161
// Check the condition only under T31 platform, as remSize is used here
6262
if (remSize && pack->length > remSize)
6363
{

src/VideoWorker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void VideoWorker::run()
6767

6868
if (global_video[encChn]->hasDataCallback)
6969
{
70-
#if defined(PLATFORM_T31) || defined(PLATFORM_T40) || defined(PLATFORM_T41)
70+
#if defined(PLATFORM_T31) || defined(PLATFORM_T40) || defined(PLATFORM_T41) || defined(PLATFORM_C100)
7171
uint8_t *start = (uint8_t *) stream.virAddr + stream.pack[i].offset;
7272
uint8_t *end = start + stream.pack[i].length;
7373
#elif defined(PLATFORM_T10) || defined(PLATFORM_T20) || defined(PLATFORM_T21) \
@@ -87,7 +87,7 @@ void VideoWorker::run()
8787
nalu.data.insert(nalu.data.end(), start + 4, end);
8888
if (global_video[encChn]->idr == false)
8989
{
90-
#if defined(PLATFORM_T31) || defined(PLATFORM_T40) || defined(PLATFORM_T41)
90+
#if defined(PLATFORM_T31) || defined(PLATFORM_T40) || defined(PLATFORM_T41) || defined(PLATFORM_C100)
9191
if (stream.pack[i].nalType.h264NalType == 7
9292
|| stream.pack[i].nalType.h264NalType == 8
9393
|| stream.pack[i].nalType.h264NalType == 5)

0 commit comments

Comments
 (0)