Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
717addec
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,发现更多精彩内容 >>
提交
717addec
编写于
10月 09, 2012
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use proper return values in case of missing features
上级
9e6ea3ce
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
21 addition
and
21 deletion
+21
-21
libavcodec/aac_adtstoasc_bsf.c
libavcodec/aac_adtstoasc_bsf.c
+2
-2
libavcodec/aacdec.c
libavcodec/aacdec.c
+4
-4
libavcodec/ac3dec.c
libavcodec/ac3dec.c
+1
-1
libavcodec/alsdec.c
libavcodec/alsdec.c
+3
-3
libavcodec/amrnbdec.c
libavcodec/amrnbdec.c
+1
-1
libavcodec/amrwbdec.c
libavcodec/amrwbdec.c
+1
-1
libavcodec/eac3dec.c
libavcodec/eac3dec.c
+1
-1
libavcodec/flacdec.c
libavcodec/flacdec.c
+1
-1
libavcodec/mpc8.c
libavcodec/mpc8.c
+1
-1
libavcodec/tta.c
libavcodec/tta.c
+1
-1
libavcodec/wmaprodec.c
libavcodec/wmaprodec.c
+1
-1
libavcodec/wmavoice.c
libavcodec/wmavoice.c
+1
-1
libavformat/rtpdec_qt.c
libavformat/rtpdec_qt.c
+3
-3
未找到文件。
libavcodec/aac_adtstoasc_bsf.c
浏览文件 @
717addec
...
...
@@ -62,7 +62,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
if
(
!
hdr
.
crc_absent
&&
hdr
.
num_aac_frames
>
1
)
{
av_log_missing_feature
(
avctx
,
"Multiple RDBs per frame with CRC"
,
0
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
buf
+=
AAC_ADTS_HEADER_SIZE
+
2
*!
hdr
.
crc_absent
;
...
...
@@ -75,7 +75,7 @@ static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc,
init_get_bits
(
&
gb
,
buf
,
buf_size
*
8
);
if
(
get_bits
(
&
gb
,
3
)
!=
5
)
{
av_log_missing_feature
(
avctx
,
"PCE based channel configuration, where the PCE is not the first syntax element"
,
0
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
init_put_bits
(
&
pb
,
pce_data
,
MAX_PCE_SIZE
);
pce_size
=
avpriv_copy_pce_data
(
&
pb
,
&
gb
)
/
8
;
...
...
libavcodec/aacdec.c
浏览文件 @
717addec
...
...
@@ -634,7 +634,7 @@ static int decode_ga_specific_config(AACContext *ac, AVCodecContext *avctx,
if
(
get_bits1
(
gb
))
{
// frameLengthFlag
av_log_missing_feature
(
avctx
,
"960/120 MDCT window"
,
1
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
if
(
get_bits1
(
gb
))
// dependsOnCoreCoder
...
...
@@ -1635,7 +1635,7 @@ static int decode_ics(AACContext *ac, SingleChannelElement *sce,
return
-
1
;
if
(
get_bits1
(
gb
))
{
av_log_missing_feature
(
ac
->
avctx
,
"SSR"
,
1
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
}
...
...
@@ -2324,7 +2324,7 @@ static int parse_adts_frame_header(AACContext *ac, GetBitContext *gb)
if
(
size
>
0
)
{
if
(
hdr_info
.
num_aac_frames
!=
1
)
{
av_log_missing_feature
(
ac
->
avctx
,
"More than one AAC RDB per ADTS frame"
,
0
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
push_output_configuration
(
ac
);
if
(
hdr_info
.
chan_config
)
{
...
...
@@ -2609,7 +2609,7 @@ static int latm_decode_audio_specific_config(struct LATMContext *latmctx,
if
(
config_start_bit
%
8
)
{
av_log_missing_feature
(
latmctx
->
aac_ctx
.
avctx
,
"Non-byte-aligned audio-specific config"
,
1
);
return
AVERROR_
INVALIDDATA
;
return
AVERROR_
PATCHWELCOME
;
}
if
(
asclen
<=
0
)
return
AVERROR_INVALIDDATA
;
...
...
libavcodec/ac3dec.c
浏览文件 @
717addec
...
...
@@ -876,7 +876,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
if
(
s
->
eac3
&&
get_bits1
(
gbc
))
{
/* TODO: parse enhanced coupling strategy info */
av_log_missing_feature
(
s
->
avctx
,
"Enhanced coupling"
,
1
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
/* determine which channels are coupled */
...
...
libavcodec/alsdec.c
浏览文件 @
717addec
...
...
@@ -427,9 +427,9 @@ static int check_specific_config(ALSDecContext *ctx)
} \
}
MISSING_ERR
(
sconf
->
floating
,
"Floating point decoding"
,
-
1
);
MISSING_ERR
(
sconf
->
rlslms
,
"Adaptive RLS-LMS prediction"
,
-
1
);
MISSING_ERR
(
sconf
->
chan_sort
,
"Channel sorting"
,
0
);
MISSING_ERR
(
sconf
->
floating
,
"Floating point decoding"
,
AVERROR_PATCHWELCOME
);
MISSING_ERR
(
sconf
->
rlslms
,
"Adaptive RLS-LMS prediction"
,
AVERROR_PATCHWELCOME
);
MISSING_ERR
(
sconf
->
chan_sort
,
"Channel sorting"
,
0
);
return
error
;
}
...
...
libavcodec/amrnbdec.c
浏览文件 @
717addec
...
...
@@ -951,7 +951,7 @@ static int amrnb_decode_frame(AVCodecContext *avctx, void *data,
}
if
(
p
->
cur_frame_mode
==
MODE_DTX
)
{
av_log_missing_feature
(
avctx
,
"dtx mode"
,
1
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
if
(
p
->
cur_frame_mode
==
MODE_12k2
)
{
...
...
libavcodec/amrwbdec.c
浏览文件 @
717addec
...
...
@@ -1111,7 +1111,7 @@ static int amrwb_decode_frame(AVCodecContext *avctx, void *data,
if
(
ctx
->
fr_cur_mode
==
MODE_SID
)
{
/* Comfort noise frame */
av_log_missing_feature
(
avctx
,
"SID mode"
,
1
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
ff_amr_bit_reorder
((
uint16_t
*
)
&
ctx
->
frame
,
sizeof
(
AMRWBFrame
),
...
...
libavcodec/eac3dec.c
浏览文件 @
717addec
...
...
@@ -322,7 +322,7 @@ int ff_eac3_parse_header(AC3DecodeContext *s)
handled like AC-3 DolbyNet, but we cannot be sure until we have a
sample which utilizes this feature. */
av_log_missing_feature
(
s
->
avctx
,
"Reduced sampling rates"
,
1
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
skip_bits
(
gbc
,
5
);
// skip bitstream id
...
...
libavcodec/flacdec.c
浏览文件 @
717addec
...
...
@@ -372,7 +372,7 @@ static inline int decode_subframe(FLACContext *s, int channel)
}
if
(
bps
>
32
)
{
av_log_missing_feature
(
s
->
avctx
,
"decorrelated bit depth > 32"
,
0
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
//FIXME use av_log2 for types
...
...
libavcodec/mpc8.c
浏览文件 @
717addec
...
...
@@ -130,7 +130,7 @@ static av_cold int mpc8_decode_init(AVCodecContext * avctx)
channels
=
get_bits
(
&
gb
,
4
)
+
1
;
if
(
channels
>
2
)
{
av_log_missing_feature
(
avctx
,
"Multichannel MPC SV8"
,
1
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
c
->
MSS
=
get_bits1
(
&
gb
);
c
->
frames
=
1
<<
(
get_bits
(
&
gb
,
3
)
*
2
);
...
...
libavcodec/tta.c
浏览文件 @
717addec
...
...
@@ -222,7 +222,7 @@ static av_cold int tta_decode_init(AVCodecContext * avctx)
}
if
(
s
->
format
==
FORMAT_ENCRYPTED
)
{
av_log_missing_feature
(
s
->
avctx
,
"Encrypted TTA"
,
0
);
return
AVERROR
(
EINVAL
)
;
return
AVERROR
_PATCHWELCOME
;
}
avctx
->
channels
=
s
->
channels
=
get_bits
(
&
s
->
gb
,
16
);
avctx
->
bits_per_coded_sample
=
get_bits
(
&
s
->
gb
,
16
);
...
...
libavcodec/wmaprodec.c
浏览文件 @
717addec
...
...
@@ -314,7 +314,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
bits
=
ff_wma_get_frame_len_bits
(
avctx
->
sample_rate
,
3
,
s
->
decode_flags
);
if
(
bits
>
WMAPRO_BLOCK_MAX_BITS
)
{
av_log_missing_feature
(
avctx
,
"14-bits block sizes"
,
1
);
return
AVERROR_
INVALIDDATA
;
return
AVERROR_
PATCHWELCOME
;
}
s
->
samples_per_frame
=
1
<<
bits
;
...
...
libavcodec/wmavoice.c
浏览文件 @
717addec
...
...
@@ -1763,7 +1763,7 @@ static int synth_superframe(AVCodecContext *ctx, int *got_frame_ptr)
* the wild yet. */
if
(
!
get_bits1
(
gb
))
{
av_log_missing_feature
(
ctx
,
"WMAPro-in-WMAVoice support"
,
1
);
return
-
1
;
return
AVERROR_PATCHWELCOME
;
}
/* (optional) nr. of samples in superframe; always <= 480 and >= 0 */
...
...
libavformat/rtpdec_qt.c
浏览文件 @
717addec
...
...
@@ -99,7 +99,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt,
if
(
!
is_start
||
!
is_finish
)
{
av_log_missing_feature
(
s
,
"RTP-X-QT with payload description "
"split over several packets"
,
1
);
return
AVERROR
(
ENOSYS
)
;
return
AVERROR
_PATCHWELCOME
;
}
skip_bits
(
&
gb
,
12
);
// reserved
data_len
=
get_bits
(
&
gb
,
16
);
...
...
@@ -162,7 +162,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt,
if
(
has_packet_info
)
{
av_log_missing_feature
(
s
,
"RTP-X-QT with packet specific info"
,
1
);
return
AVERROR
(
ENOSYS
)
;
return
AVERROR
_PATCHWELCOME
;
}
alen
=
len
-
avio_tell
(
&
pb
);
...
...
@@ -225,7 +225,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt,
default:
/* unimplemented */
av_log_missing_feature
(
NULL
,
"RTP-X-QT with packing scheme 2"
,
1
);
return
AVERROR
(
ENOSYS
)
;
return
AVERROR
_PATCHWELCOME
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录