Skip to content

Commit

Permalink
Fix more compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mickel8 committed Jul 27, 2024
1 parent f1118c8 commit b808ed4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion c_src/xav/reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "utils.h"
#include <libavutil/version.h>

int reader_init(struct Reader *reader, char *path, size_t path_size, int device_flag,
int reader_init(struct Reader *reader, unsigned char *path, size_t path_size, int device_flag,
enum AVMediaType media_type) {
int ret;
reader->path = XAV_ALLOC(path_size + 1);
Expand Down
2 changes: 1 addition & 1 deletion c_src/xav/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct Reader {
int *frame_linesize;
};

int reader_init(struct Reader *reader, char *path, size_t path_size, int device_flag,
int reader_init(struct Reader *reader, unsigned char *path, size_t path_size, int device_flag,
enum AVMediaType media_type);

int reader_next_frame(struct Reader *reader);
Expand Down
2 changes: 1 addition & 1 deletion c_src/xav/xav_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ERL_NIF_TERM new_decoder(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) {

struct Decoder *decoder = enif_alloc_resource(decoder_resource_type, sizeof(struct Decoder));

int codec_len;
unsigned int codec_len;
if (!enif_get_atom_length(env, argv[0], &codec_len, ERL_NIF_LATIN1)) {
return xav_nif_raise(env, "failed_to_get_atom_length");
}
Expand Down

0 comments on commit b808ed4

Please sign in to comment.