Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
云duo
FFmpeg
提交
d9dee728
F
FFmpeg
项目概览
云duo
/
FFmpeg
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FFmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d9dee728
编写于
4月 22, 2011
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use av_log_ask_for_sample() to request samples from users.
上级
44f566b7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
6 deletion
+11
-6
libavcodec/atrac3.c
libavcodec/atrac3.c
+1
-1
libavcodec/cook.c
libavcodec/cook.c
+3
-1
libavcodec/loco.c
libavcodec/loco.c
+1
-1
libavcodec/wnv1.c
libavcodec/wnv1.c
+4
-2
libavformat/oma.c
libavformat/oma.c
+2
-1
未找到文件。
libavcodec/atrac3.c
浏览文件 @
d9dee728
...
...
@@ -186,7 +186,7 @@ static int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes){
obuf
[
i
]
=
c
^
buf
[
i
];
if
(
off
)
av_log
(
NULL
,
AV_LOG_DEBUG
,
"Offset of %d not handled, post sample on ffmpeg-dev.
\n
"
,
off
);
av_log
_ask_for_sample
(
NULL
,
"Offset of %d not handled.
\n
"
,
off
);
return
off
;
}
...
...
libavcodec/cook.c
浏览文件 @
d9dee728
...
...
@@ -1268,7 +1268,9 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
/* Try to catch some obviously faulty streams, othervise it might be exploitable */
if
((
q
->
samples_per_channel
==
256
)
||
(
q
->
samples_per_channel
==
512
)
||
(
q
->
samples_per_channel
==
1024
))
{
}
else
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"unknown amount of samples_per_channel = %d, report sample!
\n
"
,
q
->
samples_per_channel
);
av_log_ask_for_sample
(
avctx
,
"unknown amount of samples_per_channel = %d
\n
"
,
q
->
samples_per_channel
);
return
-
1
;
}
...
...
libavcodec/loco.c
浏览文件 @
d9dee728
...
...
@@ -248,7 +248,7 @@ static av_cold int decode_init(AVCodecContext *avctx){
break
;
default:
l
->
lossy
=
AV_RL32
(
avctx
->
extradata
+
8
);
av_log
(
avctx
,
AV_LOG_INFO
,
"This is LOCO codec version %i, please upload file for study
\n
"
,
version
);
av_log
_ask_for_sample
(
avctx
,
"This is LOCO codec version %i.
\n
"
,
version
);
}
l
->
mode
=
AV_RL32
(
avctx
->
extradata
+
4
);
...
...
libavcodec/wnv1.c
浏览文件 @
d9dee728
...
...
@@ -96,11 +96,13 @@ static int decode_frame(AVCodecContext *avctx,
else
{
l
->
shift
=
8
-
(
buf
[
2
]
>>
4
);
if
(
l
->
shift
>
4
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Unknown WNV1 frame header value %i, please upload file for study
\n
"
,
buf
[
2
]
>>
4
);
av_log_ask_for_sample
(
avctx
,
"Unknown WNV1 frame header value %i
\n
"
,
buf
[
2
]
>>
4
);
l
->
shift
=
4
;
}
if
(
l
->
shift
<
1
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Unknown WNV1 frame header value %i, please upload file for study
\n
"
,
buf
[
2
]
>>
4
);
av_log_ask_for_sample
(
avctx
,
"Unknown WNV1 frame header value %i
\n
"
,
buf
[
2
]
>>
4
);
l
->
shift
=
1
;
}
}
...
...
libavformat/oma.c
浏览文件 @
d9dee728
...
...
@@ -107,7 +107,8 @@ static int oma_read_header(AVFormatContext *s,
case
OMA_CODECID_ATRAC3
:
samplerate
=
srate_tab
[(
codec_params
>>
13
)
&
7
]
*
100
;
if
(
samplerate
!=
44100
)
av_log
(
s
,
AV_LOG_ERROR
,
"Unsupported sample rate, send sample file to developers: %d
\n
"
,
samplerate
);
av_log_ask_for_sample
(
s
,
"Unsupported sample rate: %d
\n
"
,
samplerate
);
framesize
=
(
codec_params
&
0x3FF
)
*
8
;
jsflag
=
(
codec_params
>>
17
)
&
1
;
/* get stereo coding mode, 1 for joint-stereo */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录