Fixing more warnings

This commit is contained in:
Zoe Roux
2021-04-16 22:56:55 +02:00
parent 4b5551e7df
commit 75b49dcd25
5 changed files with 6 additions and 5 deletions

View File

@@ -12,6 +12,7 @@
#include <io.h>
#include <direct.h>
#include <stddef.h>
#include <stdarg.h>

View File

@@ -34,7 +34,6 @@ int asprintf(char **buffer, const char *fmt, ...)
int vasprintf(char **buffer, const char *fmt, va_list args)
{
va_list copy;
char *ret;
int len;
va_copy(copy, args);

View File

@@ -2,6 +2,7 @@
// Created by Anonymus Raccoon on 20/12/2019.
//
#include <compatibility.h>
#include <stdio.h>
#include "stream.h"
#include "helper.h"

View File

@@ -2,11 +2,11 @@
// Created by anonymus-raccoon on 12/29/19.
//
#include "compatibility.h"
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <sys/stat.h>
#include "compatibility.h"
char *strrnchr(const char *str, int c, int occ_to_skip)
{
@@ -40,7 +40,7 @@ char *path_getfolder(const char *path)
char *path_getfilename(const char *path)
{
const char *name = strrchr(path, '/') ? strrchr(path, '/') + 1 : path;
long len = strrchr(path, '.') ? strrchr(path, '.') - name : 1024;
size_t len = strrchr(path, '.') ? strrchr(path, '.') - name : 1024;
return strndup(name, len);
}

View File

@@ -2,9 +2,9 @@
// Created by Anonymus Raccoon on 20/12/2019.
//
#include "compatibility.h"
#include "transcoder.h"
#include "helper.h"
#include "compatibility.h"
#include "path_helper.h"
#include <stdlib.h>
@@ -71,7 +71,7 @@ static void write_to_output(AVFormatContext *in_ctx,
AVPacket pkt;
AVStream *istream;
AVStream *ostream;
int index;
unsigned index;
while (av_read_frame(in_ctx, &pkt) == 0) {
index = pkt.stream_index;