Skip to content

Commit

Permalink
fixed CIDs 4167{1,2,3,4,5,7,8}
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Jul 25, 2023
1 parent 10c2809 commit 43972b3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/capture_filter/override_prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 3 additions & 2 deletions src/utils/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion src/video_capture/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class VideoDelegate : public IDeckLinkInputCallback {

public:
int newFrameReady{}; // -1 == timeout
BMDTimeValue frameTime;
BMDTimeValue frameTime{};
IDeckLinkVideoFrame *rightEyeFrame{};
void *pixelFrame{};
void *pixelFrameRight{};
Expand Down
2 changes: 1 addition & 1 deletion src/video_capture/testcard2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 2 additions & 4 deletions src/video_display/decklink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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{};
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 43972b3

Please sign in to comment.