Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
c90b8809
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c90b8809
编写于
6月 24, 2017
作者:
P
Paul B Mahol
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
avfilter: do not leak AVFrame on failed buffer allocation
Signed-off-by:
N
Paul B Mahol
<
onemda@gmail.com
>
上级
db9e87dd
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
24 addition
and
8 deletion
+24
-8
libavfilter/af_aphaser.c
libavfilter/af_aphaser.c
+3
-1
libavfilter/af_aresample.c
libavfilter/af_aresample.c
+3
-1
libavfilter/af_atempo.c
libavfilter/af_atempo.c
+3
-1
libavfilter/af_bs2b.c
libavfilter/af_bs2b.c
+3
-1
libavfilter/af_pan.c
libavfilter/af_pan.c
+3
-1
libavfilter/af_volume.c
libavfilter/af_volume.c
+3
-1
libavfilter/vf_eq.c
libavfilter/vf_eq.c
+3
-1
libavfilter/vf_fftfilt.c
libavfilter/vf_fftfilt.c
+3
-1
未找到文件。
libavfilter/af_aphaser.c
浏览文件 @
c90b8809
...
...
@@ -248,8 +248,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inbuf)
outbuf
=
inbuf
;
}
else
{
outbuf
=
ff_get_audio_buffer
(
inlink
,
inbuf
->
nb_samples
);
if
(
!
outbuf
)
if
(
!
outbuf
)
{
av_frame_free
(
&
inbuf
);
return
AVERROR
(
ENOMEM
);
}
av_frame_copy_props
(
outbuf
,
inbuf
);
}
...
...
libavfilter/af_aresample.c
浏览文件 @
c90b8809
...
...
@@ -195,8 +195,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamplesref)
outsamplesref
=
ff_get_audio_buffer
(
outlink
,
n_out
);
if
(
!
outsamplesref
)
if
(
!
outsamplesref
)
{
av_frame_free
(
&
insamplesref
);
return
AVERROR
(
ENOMEM
);
}
av_frame_copy_props
(
outsamplesref
,
insamplesref
);
outsamplesref
->
format
=
outlink
->
format
;
...
...
libavfilter/af_atempo.c
浏览文件 @
c90b8809
...
...
@@ -1090,8 +1090,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *src_buffer)
while
(
src
<
src_end
)
{
if
(
!
atempo
->
dst_buffer
)
{
atempo
->
dst_buffer
=
ff_get_audio_buffer
(
outlink
,
n_out
);
if
(
!
atempo
->
dst_buffer
)
if
(
!
atempo
->
dst_buffer
)
{
av_frame_free
(
&
src_buffer
);
return
AVERROR
(
ENOMEM
);
}
av_frame_copy_props
(
atempo
->
dst_buffer
,
src_buffer
);
atempo
->
dst
=
atempo
->
dst_buffer
->
data
[
0
];
...
...
libavfilter/af_bs2b.c
浏览文件 @
c90b8809
...
...
@@ -134,8 +134,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
out_frame
=
frame
;
}
else
{
out_frame
=
ff_get_audio_buffer
(
inlink
,
frame
->
nb_samples
);
if
(
!
out_frame
)
if
(
!
out_frame
)
{
av_frame_free
(
&
frame
);
return
AVERROR
(
ENOMEM
);
}
av_frame_copy
(
out_frame
,
frame
);
ret
=
av_frame_copy_props
(
out_frame
,
frame
);
if
(
ret
<
0
)
{
...
...
libavfilter/af_pan.c
浏览文件 @
c90b8809
...
...
@@ -383,8 +383,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
AVFrame
*
outsamples
=
ff_get_audio_buffer
(
outlink
,
n
);
PanContext
*
pan
=
inlink
->
dst
->
priv
;
if
(
!
outsamples
)
if
(
!
outsamples
)
{
av_frame_free
(
&
insamples
);
return
AVERROR
(
ENOMEM
);
}
swr_convert
(
pan
->
swr
,
outsamples
->
extended_data
,
n
,
(
void
*
)
insamples
->
extended_data
,
n
);
av_frame_copy_props
(
outsamples
,
insamples
);
...
...
libavfilter/af_volume.c
浏览文件 @
c90b8809
...
...
@@ -411,8 +411,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
out_buf
=
buf
;
}
else
{
out_buf
=
ff_get_audio_buffer
(
inlink
,
nb_samples
);
if
(
!
out_buf
)
if
(
!
out_buf
)
{
av_frame_free
(
&
buf
);
return
AVERROR
(
ENOMEM
);
}
ret
=
av_frame_copy_props
(
out_buf
,
buf
);
if
(
ret
<
0
)
{
av_frame_free
(
&
out_buf
);
...
...
libavfilter/vf_eq.c
浏览文件 @
c90b8809
...
...
@@ -259,8 +259,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
int
i
;
out
=
ff_get_video_buffer
(
outlink
,
inlink
->
w
,
inlink
->
h
);
if
(
!
out
)
if
(
!
out
)
{
av_frame_free
(
&
in
);
return
AVERROR
(
ENOMEM
);
}
av_frame_copy_props
(
out
,
in
);
desc
=
av_pix_fmt_desc_get
(
inlink
->
format
);
...
...
libavfilter/vf_fftfilt.c
浏览文件 @
c90b8809
...
...
@@ -255,8 +255,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
int
i
,
j
,
plane
;
out
=
ff_get_video_buffer
(
outlink
,
inlink
->
w
,
inlink
->
h
);
if
(
!
out
)
if
(
!
out
)
{
av_frame_free
(
&
in
);
return
AVERROR
(
ENOMEM
);
}
av_frame_copy_props
(
out
,
in
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录