Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
merge_av
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
胡斌
2018-12-11 22:43:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
33a055c109da1859d711e2b1992a8d1cea85a6c6
33a055c1
1 parent
b564d2b3
fix bug about using LIBAVCODEC_VERSION_MAJOR version,leading to wrong pcm format for aac encoding
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
11 行增加
和
8 行删除
pip/AVTranscoder.cpp
pip/VideoDecoder.cpp
pip/media_info.h
pip/pip.vcxproj
pip/AVTranscoder.cpp
查看文件 @
33a055c
...
...
@@ -289,7 +289,7 @@ int CAVTranscoder::open_output_file(const char *filename)
for
(;
it
!=
decoders_got_frame
.
end
();
it
++
)
{
AVFrame
*
pFrame
=
(
*
it
)
->
_cur_a_frame
;
if
(
pFrame
)
{
#if LIBAVCODEC_VERSION_MAJOR < 5
8
#if LIBAVCODEC_VERSION_MAJOR < 5
7
int16_t
*
psrc
=
(
int16_t
*
)
pFrame
->
extended_data
[
0
];
int16_t
*
pdst
=
(
int16_t
*
)
pDstFrame
->
extended_data
[
0
];
#else
...
...
pip/VideoDecoder.cpp
查看文件 @
33a055c
#include "VideoDecoder.h"
extern
AVRational
timebase_ms
;
CVideoDecoder
::
CVideoDecoder
()
:
...
...
pip/media_info.h
查看文件 @
33a055c
...
...
@@ -51,7 +51,9 @@ extern "C" {
#include <libavutil/opt.h>
#include <libavutil/pixdesc.h>
}
#ifdef WIN32
#ifdef ADD_FFMPEG_LIB
#pragma comment(lib, "avcodec.lib")
#pragma comment(lib, "avdevice.lib")
#pragma comment(lib, "avfilter.lib")
...
...
@@ -60,9 +62,7 @@ extern "C" {
#pragma comment(lib, "postproc.lib")
#pragma comment(lib, "swresample.lib")
#pragma comment(lib, "swscale.lib")
#endif
#if _MSC_VER
#define snprintf _snprintf
#define PRIu64 "I64u"
#define PRId64 "I64d"
...
...
@@ -70,6 +70,8 @@ extern "C" {
#define PRIX64 "I64X"
#endif
typedef
struct
FilteringContext
{
AVFilterContext
*
buffersink_ctx
;
AVFilterContext
*
buffersrc_ctx
;
...
...
@@ -80,7 +82,7 @@ typedef struct FilteringContext {
#define AFRAME_DURATION_MS 21.333333
#define VFRAME_DURATION_MS 50
#if LIBAVCODEC_VERSION_MAJOR < 5
8
#if LIBAVCODEC_VERSION_MAJOR < 5
7
#define PCM_FORMAT_FOR_AAC_ENCODE AV_SAMPLE_FMT_S16
#else
#define PCM_FORMAT_FOR_AAC_ENCODE AV_SAMPLE_FMT_FLTP
...
...
pip/pip.vcxproj
查看文件 @
33a055c
...
...
@@ -52,7 +52,7 @@
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>
ADD_FFMPEG_LIB;
WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<AdditionalIncludeDirectories>..\..\liveAssistant\third-lib\ffmpeg\include</AdditionalIncludeDirectories>
</ClCompile>
<Link>
...
...
@@ -69,7 +69,7 @@
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>
ADD_FFMPEG_LIB;
WIN32;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
...
...
请
注册
或
登录
后发表评论