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
f92a99da
Commit
f92a99da
authored
Aug 02, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flacenc: switch to av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
4d38b838
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
flacenc.c
libavcodec/flacenc.c
+5
-4
No files found.
libavcodec/flacenc.c
View file @
f92a99da
...
...
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavutil/avassert.h"
#include "libavutil/crc.h"
#include "libavutil/md5.h"
#include "libavutil/opt.h"
...
...
@@ -139,7 +140,7 @@ static int select_blocksize(int samplerate, int block_time_ms)
int
target
;
int
blocksize
;
a
ssert
(
samplerate
>
0
);
a
v_assert0
(
samplerate
>
0
);
blocksize
=
ff_flac_blocksize_table
[
1
];
target
=
(
samplerate
*
block_time_ms
)
/
1000
;
for
(
i
=
0
;
i
<
16
;
i
++
)
{
...
...
@@ -594,9 +595,9 @@ static uint32_t calc_rice_params(RiceContext *rc, int pmin, int pmax,
uint32_t
*
udata
;
uint32_t
sums
[
MAX_PARTITION_ORDER
+
1
][
MAX_PARTITIONS
];
a
ssert
(
pmin
>=
0
&&
pmin
<=
MAX_PARTITION_ORDER
);
a
ssert
(
pmax
>=
0
&&
pmax
<=
MAX_PARTITION_ORDER
);
a
ssert
(
pmin
<=
pmax
);
a
v_assert1
(
pmin
>=
0
&&
pmin
<=
MAX_PARTITION_ORDER
);
a
v_assert1
(
pmax
>=
0
&&
pmax
<=
MAX_PARTITION_ORDER
);
a
v_assert1
(
pmin
<=
pmax
);
udata
=
av_malloc
(
n
*
sizeof
(
uint32_t
));
for
(
i
=
0
;
i
<
n
;
i
++
)
...
...
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