Fixing first compile issue

This commit is contained in:
Zoe Roux
2021-01-03 01:45:33 +01:00
parent 13314b9dfa
commit f10b07334c
6 changed files with 11 additions and 6 deletions

View File

@@ -21,7 +21,8 @@ target_link_libraries(transcoder
${CMAKE_SOURCE_DIR}/ffmpeg/libavcodec/libavcodec.a
${CMAKE_SOURCE_DIR}/ffmpeg/libavutil/libavutil.a
${CMAKE_SOURCE_DIR}/ffmpeg/libavdevice/libavdevice.a
${CMAKE_SOURCE_DIR}/ffmpeg/libswresample/libswresample.a)
${CMAKE_SOURCE_DIR}/ffmpeg/libswresample/libswresample.a
)
if(WIN32)
target_link_libraries(transcoder wsock32 ws2_32)
@@ -37,3 +38,4 @@ ExternalProject_Add(FFMPEG
BUILD_COMMAND make
INSTALL_COMMAND cmake -E echo "Skipping install step."
)
add_dependencies(transcoder FFMPEG)

2
ffmpeg

Submodule ffmpeg updated: 029cc9883f...ed524136e0

View File

@@ -4,9 +4,9 @@
#pragma once
#include "libavformat/avformat.h"
#include "libavutil/dict.h"
#include "libavutil/timestamp.h"
#include <libavformat/avformat.h>
#include <libavutil/dict.h>
#include <libavutil/timestamp.h>
#include "stream.h"
int open_input_context(AVFormatContext **inputContext, const char *path);

View File

@@ -6,6 +6,9 @@
#include <stdbool.h>
#include <stddef.h>
#include <libavformat/avformat.h>
#include <libavutil/log.h>
#define AV_LOG_LEVEL AV_LOG_WARNING
typedef enum
{

View File

@@ -106,7 +106,7 @@ int transmux(const char *path, const char *out_path, float *playable_duration)
int *stream_map;
*playable_duration = 0;
av_log_set_level(AV_LOG_WARNING);
av_log_set_level(AV_LOG_LEVEL);
if (open_input_context(&in_ctx, path) != 0) {
fprintf(stderr, "Error: Coudln't open the input file.\n");
return -1;

BIN
tests/vgcore.168509 Normal file

Binary file not shown.