Skip to content

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Aug 16, 2023
1 parent 3f7f04c commit 6d2ed90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions toxav/toxav.c
Original file line number Diff line number Diff line change
Expand Up @@ -2689,7 +2689,7 @@ struct ToxAV_NGC_vcoders {
AVCodecContext *ngc__h264_decoder;
};

void* toxav_ngc_video_init()
void* toxav_ngc_video_init(void)
{
struct ToxAV_NGC_vcoders *ngc_video_coders = calloc(1, sizeof(struct ToxAV_NGC_vcoders));

Expand Down Expand Up @@ -2922,9 +2922,9 @@ bool toxav_ngc_video_encode(void *vngc, const uint16_t vbitrate, const uint16_t
return true;
}

bool toxav_ngc_video_decode(void *vngc, const uint8_t *encoded_frame_bytes, uint32_t encoded_frame_size_bytes,
bool toxav_ngc_video_decode(void *vngc, uint8_t *encoded_frame_bytes, uint32_t encoded_frame_size_bytes,
uint16_t width, uint16_t height,
const uint8_t *y, const uint8_t *u, const uint8_t *v,
uint8_t *y, uint8_t *u, uint8_t *v,
int32_t *ystride, int32_t *ustride, int32_t *vstride)
{
if (vngc == nullptr) {
Expand Down
6 changes: 3 additions & 3 deletions toxav/toxav.h
Original file line number Diff line number Diff line change
Expand Up @@ -1033,14 +1033,14 @@ bool toxav_option_set(ToxAV *av, uint32_t friend_number, TOXAV_OPTIONS_OPTION op
/**
* NGC Group Video.
*/
void* toxav_ngc_video_init();
void* toxav_ngc_video_init(void);
void toxav_ngc_video_kill(void *vngc);
bool toxav_ngc_video_encode(void *vngc, const uint16_t vbitrate, const uint16_t width, const uint16_t height,
const uint8_t *y, const uint8_t *u, const uint8_t *v,
uint8_t *encoded_frame_bytes, uint32_t *encoded_frame_size_bytes);
bool toxav_ngc_video_decode(void *vngc, const uint8_t *encoded_frame_bytes, uint32_t encoded_frame_size_bytes,
bool toxav_ngc_video_decode(void *vngc, uint8_t *encoded_frame_bytes, uint32_t encoded_frame_size_bytes,
uint16_t width, uint16_t height,
const uint8_t *y, const uint8_t *u, const uint8_t *v,
uint8_t *y, uint8_t *u, uint8_t *v,
int32_t *ystride, int32_t *ustride, int32_t *vstride);


Expand Down

0 comments on commit 6d2ed90

Please sign in to comment.