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
19008e06
Commit
19008e06
authored
Aug 30, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmavoice: switch to av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
158a70f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
wmavoice.c
libavcodec/wmavoice.c
+5
-5
No files found.
libavcodec/wmavoice.c
View file @
19008e06
...
...
@@ -774,7 +774,7 @@ static void postfilter(WMAVoiceContext *s, const float *synth,
*
synth_pf
=
&
s
->
synth_filter_out_buf
[
MAX_LSPS_ALIGN16
],
*
synth_filter_in
=
zero_exc_pf
;
a
ssert
(
size
<=
MAX_FRAMESIZE
/
2
);
a
v_assert0
(
size
<=
MAX_FRAMESIZE
/
2
);
/* generate excitation from input signal */
ff_celp_lp_zero_synthesis_filterf
(
zero_exc_pf
,
lpcs
,
synth
,
size
,
s
->
lsps
);
...
...
@@ -1241,7 +1241,7 @@ static void synth_block_hardcoded(WMAVoiceContext *s, GetBitContext *gb,
float
gain
;
int
n
,
r_idx
;
a
ssert
(
size
<=
MAX_FRAMESIZE
);
a
v_assert0
(
size
<=
MAX_FRAMESIZE
);
/* Set the offset from which we start reading wmavoice_std_codebook */
if
(
frame_desc
->
fcb_type
==
FCB_TYPE_SILENCE
)
{
...
...
@@ -1277,7 +1277,7 @@ static void synth_block_fcb_acb(WMAVoiceContext *s, GetBitContext *gb,
int
n
,
idx
,
gain_weight
;
AMRFixed
fcb
;
a
ssert
(
size
<=
MAX_FRAMESIZE
/
2
);
a
v_assert0
(
size
<=
MAX_FRAMESIZE
/
2
);
memset
(
pulses
,
0
,
sizeof
(
*
pulses
)
*
size
);
fcb
.
pitch_lag
=
block_pitch_sh2
>>
2
;
...
...
@@ -1654,7 +1654,7 @@ static int check_bits_for_superframe(GetBitContext *orig_gb,
/* initialize a copy */
init_get_bits
(
gb
,
orig_gb
->
buffer
,
orig_gb
->
size_in_bits
);
skip_bits_long
(
gb
,
get_bits_count
(
orig_gb
));
a
ssert
(
get_bits_left
(
gb
)
==
get_bits_left
(
orig_gb
));
a
v_assert1
(
get_bits_left
(
gb
)
==
get_bits_left
(
orig_gb
));
/* superframe header */
if
(
get_bits_left
(
gb
)
<
14
)
...
...
@@ -1990,7 +1990,7 @@ static int wmavoice_decode_packet(AVCodecContext *ctx, void *data,
/* rewind bit reader to start of last (incomplete) superframe... */
init_get_bits
(
gb
,
avpkt
->
data
,
size
<<
3
);
skip_bits_long
(
gb
,
(
size
<<
3
)
-
pos
);
a
ssert
(
get_bits_left
(
gb
)
==
pos
);
a
v_assert1
(
get_bits_left
(
gb
)
==
pos
);
/* ...and cache it for spillover in next packet */
init_put_bits
(
&
s
->
pb
,
s
->
sframe_cache
,
SFRAME_CACHE_MAXSIZE
);
...
...
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