mirror of
https://github.com/zoriya/Kyoo.Transcoder.git
synced 2025-12-06 06:26:11 +00:00
Fixing more warnings
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
|
||||
#include <io.h>
|
||||
#include <direct.h>
|
||||
#include <stddef.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// Created by Anonymus Raccoon on 20/12/2019.
|
||||
//
|
||||
|
||||
#include <compatibility.h>
|
||||
#include <stdio.h>
|
||||
#include "stream.h"
|
||||
#include "helper.h"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user