Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
12e25ed2
Commit
12e25ed2
authored
Mar 13, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: av_log_missing_feature(1) ---> avpriv_request_sample()
parent
6d97484d
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
31 additions
and
33 deletions
+31
-33
aacdec.c
libavcodec/aacdec.c
+6
-8
aacsbr.c
libavcodec/aacsbr.c
+1
-1
ac3dec.c
libavcodec/ac3dec.c
+1
-1
amrnbdec.c
libavcodec/amrnbdec.c
+1
-1
amrwbdec.c
libavcodec/amrwbdec.c
+1
-1
eac3dec.c
libavcodec/eac3dec.c
+4
-4
flashsv.c
libavcodec/flashsv.c
+3
-3
h264.c
libavcodec/h264.c
+2
-2
mimic.c
libavcodec/mimic.c
+1
-1
mpc8.c
libavcodec/mpc8.c
+1
-1
rv10.c
libavcodec/rv10.c
+1
-1
smc.c
libavcodec/smc.c
+1
-1
takdec.c
libavcodec/takdec.c
+1
-1
truemotion2.c
libavcodec/truemotion2.c
+1
-1
tta.c
libavcodec/tta.c
+1
-1
vp8.c
libavcodec/vp8.c
+1
-1
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+2
-2
wmaprodec.c
libavcodec/wmaprodec.c
+1
-1
wmavoice.c
libavcodec/wmavoice.c
+1
-1
No files found.
libavcodec/aacdec.c
View file @
12e25ed2
...
...
@@ -670,7 +670,7 @@ static int decode_ga_specific_config(AACContext *ac, AVCodecContext *avctx,
int
tags
=
0
;
if
(
get_bits1
(
gb
))
{
// frameLengthFlag
av
_log_missing_feature
(
avctx
,
"960/120 MDCT window"
,
1
);
av
priv_request_sample
(
avctx
,
"960/120 MDCT window"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
@@ -1660,7 +1660,7 @@ static int decode_ics(AACContext *ac, SingleChannelElement *sce,
if
((
tns
->
present
=
get_bits1
(
gb
))
&&
decode_tns
(
ac
,
tns
,
gb
,
ics
))
return
-
1
;
if
(
get_bits1
(
gb
))
{
av
_log_missing_feature
(
ac
->
avctx
,
"SSR"
,
1
);
av
priv_request_sample
(
ac
->
avctx
,
"SSR"
);
return
AVERROR_PATCHWELCOME
;
}
}
...
...
@@ -2620,8 +2620,8 @@ static int latm_decode_audio_specific_config(struct LATMContext *latmctx,
asclen
=
get_bits_left
(
gb
);
if
(
config_start_bit
%
8
)
{
av
_log_missing_featur
e
(
latmctx
->
aac_ctx
.
avctx
,
"Non-byte-aligned audio-specific config"
,
1
);
av
priv_request_sampl
e
(
latmctx
->
aac_ctx
.
avctx
,
"Non-byte-aligned audio-specific config"
);
return
AVERROR_PATCHWELCOME
;
}
if
(
asclen
<=
0
)
...
...
@@ -2675,8 +2675,7 @@ static int read_stream_mux_config(struct LATMContext *latmctx,
skip_bits
(
gb
,
6
);
// numSubFrames
// numPrograms
if
(
get_bits
(
gb
,
4
))
{
// numPrograms
av_log_missing_feature
(
latmctx
->
aac_ctx
.
avctx
,
"Multiple programs"
,
1
);
avpriv_request_sample
(
latmctx
->
aac_ctx
.
avctx
,
"Multiple programs"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
@@ -2684,8 +2683,7 @@ static int read_stream_mux_config(struct LATMContext *latmctx,
// for each layer (which there is only on in DVB)
if
(
get_bits
(
gb
,
3
))
{
// numLayer
av_log_missing_feature
(
latmctx
->
aac_ctx
.
avctx
,
"Multiple layers"
,
1
);
avpriv_request_sample
(
latmctx
->
aac_ctx
.
avctx
,
"Multiple layers"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/aacsbr.c
View file @
12e25ed2
...
...
@@ -927,7 +927,7 @@ static void read_sbr_extension(AACContext *ac, SpectralBandReplication *sbr,
}
break
;
default:
av
_log_missing_feature
(
ac
->
avctx
,
"Reserved SBR extensions"
,
1
);
av
priv_request_sample
(
ac
->
avctx
,
"Reserved SBR extensions"
);
skip_bits_long
(
gb
,
*
num_bits_left
);
// bs_fill_bits
*
num_bits_left
=
0
;
break
;
...
...
libavcodec/ac3dec.c
View file @
12e25ed2
...
...
@@ -874,7 +874,7 @@ static int decode_audio_block(AC3DecodeContext *s, int blk)
/* check for enhanced coupling */
if
(
s
->
eac3
&&
get_bits1
(
gbc
))
{
/* TODO: parse enhanced coupling strategy info */
av
_log_missing_feature
(
s
->
avctx
,
"Enhanced coupling"
,
1
);
av
priv_request_sample
(
s
->
avctx
,
"Enhanced coupling"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/amrnbdec.c
View file @
12e25ed2
...
...
@@ -957,7 +957,7 @@ static int amrnb_decode_frame(AVCodecContext *avctx, void *data,
return
AVERROR_INVALIDDATA
;
}
if
(
p
->
cur_frame_mode
==
MODE_DTX
)
{
av
_log_missing_feature
(
avctx
,
"dtx mode"
,
1
);
av
priv_request_sample
(
avctx
,
"dtx mode"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/amrwbdec.c
View file @
12e25ed2
...
...
@@ -1117,7 +1117,7 @@ static int amrwb_decode_frame(AVCodecContext *avctx, void *data,
av_log
(
avctx
,
AV_LOG_ERROR
,
"Encountered a bad or corrupted frame
\n
"
);
if
(
ctx
->
fr_cur_mode
==
MODE_SID
)
{
/* Comfort noise frame */
av
_log_missing_feature
(
avctx
,
"SID mode"
,
1
);
av
priv_request_sample
(
avctx
,
"SID mode"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/eac3dec.c
View file @
12e25ed2
...
...
@@ -300,7 +300,7 @@ int ff_eac3_parse_header(AC3DecodeContext *s)
application can select from. each independent stream can also contain
dependent streams which are used to add or replace channels. */
if
(
s
->
frame_type
==
EAC3_FRAME_TYPE_DEPENDENT
)
{
av
_log_missing_feature
(
s
->
avctx
,
"Dependent substream decoding"
,
1
);
av
priv_request_sample
(
s
->
avctx
,
"Dependent substream decoding"
);
return
AAC_AC3_PARSE_ERROR_FRAME_TYPE
;
}
else
if
(
s
->
frame_type
==
EAC3_FRAME_TYPE_RESERVED
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Reserved frame type
\n
"
);
...
...
@@ -312,7 +312,7 @@ int ff_eac3_parse_header(AC3DecodeContext *s)
associated to an independent stream have matching substream id's. */
if
(
s
->
substreamid
)
{
/* only decode substream with id=0. skip any additional substreams. */
av
_log_missing_feature
(
s
->
avctx
,
"Additional substreams"
,
1
);
av
priv_request_sample
(
s
->
avctx
,
"Additional substreams"
);
return
AAC_AC3_PARSE_ERROR_FRAME_TYPE
;
}
...
...
@@ -321,7 +321,7 @@ int ff_eac3_parse_header(AC3DecodeContext *s)
rates in bit allocation. The best assumption would be that it is
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 rate"
,
1
);
av
priv_request_sample
(
s
->
avctx
,
"Reduced sampling rate"
);
return
AVERROR_PATCHWELCOME
;
}
skip_bits
(
gbc
,
5
);
// skip bitstream id
...
...
@@ -593,7 +593,7 @@ int ff_eac3_parse_header(AC3DecodeContext *s)
It is likely the offset of each block within the frame. */
int
block_start_bits
=
(
s
->
num_blocks
-
1
)
*
(
4
+
av_log2
(
s
->
frame_size
-
2
));
skip_bits_long
(
gbc
,
block_start_bits
);
av
_log_missing_feature
(
s
->
avctx
,
"Block start info"
,
1
);
av
priv_request_sample
(
s
->
avctx
,
"Block start info"
);
}
/* syntax state initialization */
...
...
libavcodec/flashsv.c
View file @
12e25ed2
...
...
@@ -259,11 +259,11 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
if
(
s
->
ver
==
2
)
{
skip_bits
(
&
gb
,
6
);
if
(
get_bits1
(
&
gb
))
{
av
_log_missing_feature
(
avctx
,
"iframe"
,
1
);
av
priv_request_sample
(
avctx
,
"iframe"
);
return
AVERROR_PATCHWELCOME
;
}
if
(
get_bits1
(
&
gb
))
{
av
_log_missing_feature
(
avctx
,
"Custom palette"
,
1
);
av
priv_request_sample
(
avctx
,
"Custom palette"
);
return
AVERROR_PATCHWELCOME
;
}
}
...
...
@@ -394,7 +394,7 @@ static int flashsv_decode_frame(AVCodecContext *avctx, void *data,
int
row
=
get_bits
(
&
gb
,
8
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"%dx%d zlibprime_curr %dx%d
\n
"
,
i
,
j
,
col
,
row
);
size
-=
2
;
av
_log_missing_feature
(
avctx
,
"zlibprime_curr"
,
1
);
av
priv_request_sample
(
avctx
,
"zlibprime_curr"
);
return
AVERROR_PATCHWELCOME
;
}
if
(
!
s
->
blocks
&&
(
s
->
zlibprime_curr
||
s
->
zlibprime_prev
))
{
...
...
libavcodec/h264.c
View file @
12e25ed2
...
...
@@ -2884,8 +2884,8 @@ static int h264_set_parameter_from_sps(H264Context *h)
h
->
avctx
->
has_b_frames
=
!
h
->
low_delay
;
if
(
h
->
sps
.
bit_depth_luma
!=
h
->
sps
.
bit_depth_chroma
)
{
av
_log_missing_featur
e
(
h
->
avctx
,
"Different bit depth between chroma and luma"
,
1
);
av
priv_request_sampl
e
(
h
->
avctx
,
"Different chroma and luma bit depth"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/mimic.c
View file @
12e25ed2
...
...
@@ -389,7 +389,7 @@ static int mimic_decode_frame(AVCodecContext *avctx, void *data,
ctx
->
num_hblocks
[
i
]
=
width
>>
(
3
+
!!
i
);
}
}
else
if
(
width
!=
ctx
->
avctx
->
width
||
height
!=
ctx
->
avctx
->
height
)
{
av
_log_missing_feature
(
avctx
,
"resolution changing"
,
1
);
av
priv_request_sample
(
avctx
,
"Resolution changing"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/mpc8.c
View file @
12e25ed2
...
...
@@ -130,7 +130,7 @@ static av_cold int mpc8_decode_init(AVCodecContext * avctx)
c
->
maxbands
=
get_bits
(
&
gb
,
5
)
+
1
;
channels
=
get_bits
(
&
gb
,
4
)
+
1
;
if
(
channels
>
2
)
{
av
_log_missing_feature
(
avctx
,
"Multichannel MPC SV8"
,
1
);
av
priv_request_sample
(
avctx
,
"Multichannel MPC SV8"
);
return
AVERROR_PATCHWELCOME
;
}
c
->
MSS
=
get_bits1
(
&
gb
);
...
...
libavcodec/rv10.c
View file @
12e25ed2
...
...
@@ -459,7 +459,7 @@ static av_cold int rv10_decode_init(AVCodecContext *avctx)
break
;
default:
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"unknown header %X
\n
"
,
rv
->
sub_id
);
av
_log_missing_feature
(
avctx
,
"RV1/2 version"
,
1
);
av
priv_request_sample
(
avctx
,
"RV1/2 version"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/smc.c
View file @
12e25ed2
...
...
@@ -402,7 +402,7 @@ static void smc_decode_stream(SmcContext *s)
break
;
case
0xF0
:
av
_log_missing_feature
(
s
->
avctx
,
"0xF0 opcode"
,
1
);
av
priv_request_sample
(
s
->
avctx
,
"0xF0 opcode"
);
break
;
}
}
...
...
libavcodec/takdec.c
View file @
12e25ed2
...
...
@@ -685,7 +685,7 @@ static int tak_decode_frame(AVCodecContext *avctx, void *data,
return
ret
;
if
(
s
->
ti
.
flags
&
TAK_FRAME_FLAG_HAS_METADATA
)
{
av
_log_missing_feature
(
avctx
,
"frame metadata"
,
1
);
av
priv_request_sample
(
avctx
,
"Frame metadata"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
libavcodec/truemotion2.c
View file @
12e25ed2
...
...
@@ -226,7 +226,7 @@ static inline int tm2_read_header(TM2Context *ctx, const uint8_t *buf)
switch
(
magic
)
{
case
TM2_OLD_HEADER_MAGIC
:
av
_log_missing_feature
(
ctx
->
avctx
,
"TM2 old header"
,
1
);
av
priv_request_sample
(
ctx
->
avctx
,
"Old TM2 header"
);
return
0
;
case
TM2_NEW_HEADER_MAGIC
:
return
0
;
...
...
libavcodec/tta.c
View file @
12e25ed2
...
...
@@ -222,7 +222,7 @@ static av_cold int tta_decode_init(AVCodecContext * avctx)
return
-
1
;
}
if
(
s
->
format
==
FORMAT_ENCRYPTED
)
{
av_report_missing_feature
(
s
->
avctx
,
"Encrypted TTA"
);
av
priv
_report_missing_feature
(
s
->
avctx
,
"Encrypted TTA"
);
return
AVERROR_PATCHWELCOME
;
}
avctx
->
channels
=
s
->
channels
=
get_bits
(
&
s
->
gb
,
16
);
...
...
libavcodec/vp8.c
View file @
12e25ed2
...
...
@@ -337,7 +337,7 @@ static int decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size)
buf_size
-=
7
;
if
(
hscale
||
vscale
)
av
_log_missing_feature
(
s
->
avctx
,
"Upscaling"
,
1
);
av
priv_request_sample
(
s
->
avctx
,
"Upscaling"
);
s
->
update_golden
=
s
->
update_altref
=
VP56_FRAME_CURRENT
;
for
(
i
=
0
;
i
<
4
;
i
++
)
...
...
libavcodec/wmalosslessdec.c
View file @
12e25ed2
...
...
@@ -886,7 +886,7 @@ static int decode_subframe(WmallDecodeCtx *s)
s
->
do_arith_coding
=
get_bits1
(
&
s
->
gb
);
if
(
s
->
do_arith_coding
)
{
av
_log_missing_feature
(
s
->
avctx
,
"Arithmetic coding"
,
1
);
av
priv_request_sample
(
s
->
avctx
,
"Arithmetic coding"
);
return
AVERROR_PATCHWELCOME
;
}
s
->
do_ac_filter
=
get_bits1
(
&
s
->
gb
);
...
...
@@ -1191,7 +1191,7 @@ static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr,
skip_bits
(
gb
,
1
);
// Skip seekable_frame_in_packet, currently ununused
spliced_packet
=
get_bits1
(
gb
);
if
(
spliced_packet
)
av
_log_missing_feature
(
avctx
,
"Bitstream splicing"
,
1
);
av
priv_request_sample
(
avctx
,
"Bitstream splicing"
);
/* get number of bits that need to be added to the previous frame */
num_bits_prev_frame
=
get_bits
(
gb
,
s
->
log2_frame_size
);
...
...
libavcodec/wmaprodec.c
View file @
12e25ed2
...
...
@@ -314,7 +314,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
/** get frame len */
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
);
av
priv_request_sample
(
avctx
,
"14-bit block sizes"
);
return
AVERROR_PATCHWELCOME
;
}
s
->
samples_per_frame
=
1
<<
bits
;
...
...
libavcodec/wmavoice.c
View file @
12e25ed2
...
...
@@ -1765,7 +1765,7 @@ static int synth_superframe(AVCodecContext *ctx, AVFrame *frame,
* are really WMAPro-in-WMAVoice-superframes. I've never seen those in
* the wild yet. */
if
(
!
get_bits1
(
gb
))
{
av
_log_missing_feature
(
ctx
,
"WMAPro-in-WMAVoice"
,
1
);
av
priv_request_sample
(
ctx
,
"WMAPro-in-WMAVoice"
);
return
AVERROR_PATCHWELCOME
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment