mirror of
https://github.com/zoriya/Kyoo.Transcoder.git
synced 2025-12-06 06:26:11 +00:00
Fixing first compile issue
This commit is contained in:
@@ -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
2
ffmpeg
Submodule ffmpeg updated: 029cc9883f...ed524136e0
@@ -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);
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
BIN
tests/vgcore.168509
Normal file
Binary file not shown.
Reference in New Issue
Block a user