fixed CIDs 4167{1,2,3,4,5,7,8}

This commit is contained in:
Martin Pulec
2023-07-25 09:32:02 +02:00
parent 10c280959b
commit 43972b36ea
5 changed files with 8 additions and 8 deletions

View File

@@ -174,4 +174,5 @@ static const struct capture_filter_info capture_filter_override_prop = {
};
REGISTER_MODULE(override_prop, &capture_filter_override_prop, LIBRARY_CLASS_CAPTURE_FILTER, CAPTURE_FILTER_ABI_VERSION);
// coverity[leaked_storage:SUPPRESS]
ADD_VO_PP_CAPTURE_FILTER_WRAPPER(override_prop, init, filter, done, vo_pp_set_out_buffer)

View File

@@ -81,6 +81,7 @@ next_power_of_two(unsigned long long x)
if (x <= 1) {
return 1;
}
const unsigned long long pos = __builtin_clzll(x - 1);
return pos > 0 ? 1 << (sizeof(unsigned long long) * CHAR_BIT - pos) : 0;
const int pos = __builtin_clzll(x - 1);
return pos > 0 ? 1ULL << (sizeof(unsigned long long) * CHAR_BIT - pos)
: 0;
}

View File

@@ -207,7 +207,7 @@ private:
public:
int newFrameReady{}; // -1 == timeout
BMDTimeValue frameTime;
BMDTimeValue frameTime{};
IDeckLinkVideoFrame *rightEyeFrame{};
void *pixelFrame{};
void *pixelFrameRight{};

View File

@@ -330,7 +330,7 @@ void * vidcap_testcard2_thread(void *arg)
gettimeofday(&s->last_audio_time, NULL);
#ifdef HAVE_LIBSDL_TTF
#define EXIT_THREAD { exit_uv(1); s->should_exit = true; platform_sem_post(&s->semaphore); return NULL; }
#define EXIT_THREAD { free(banner); exit_uv(1); s->should_exit = true; platform_sem_post(&s->semaphore); return NULL; }
TTF_Font * font = NULL;
uint32_t *banner = malloc(vc_get_datalen(s->desc.width, BANNER_HEIGHT, RGBA));
if(TTF_Init() == -1)

View File

@@ -143,7 +143,7 @@ class PlaybackDelegate : public IDeckLinkVideoOutputCallback // , public IDeckLi
uint64_t frames_flushed = 0;
uint64_t frames_late = 0;
IDeckLinkOutput *m_deckLinkOutput;
IDeckLinkOutput *m_deckLinkOutput{};
mutex schedLock;
queue<DeckLinkFrame *> schedFrames{};
DeckLinkFrame *lastSchedFrame{};
@@ -1267,9 +1267,7 @@ static void *display_decklink_init(struct module *parent, const char *fmt, unsig
break;
}
if (deckLink != NULL) {
deckLink->Release();
}
deckLink->Release();
dnum++;
}
deckLinkIterator->Release();