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
8aeed144
Commit
8aeed144
authored
Jun 22, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h.263enc: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c8f4c83e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
ituh263enc.c
libavcodec/ituh263enc.c
+5
-8
No files found.
libavcodec/ituh263enc.c
View file @
8aeed144
...
...
@@ -40,9 +40,6 @@
#include "mpeg4video.h"
#include "internal.h"
//#undef NDEBUG
//#include <assert.h>
/**
* Table of number of bits a motion vector component needs.
*/
...
...
@@ -229,7 +226,7 @@ void ff_h263_encode_picture_header(MpegEncContext * s, int picture_number)
if
(
s
->
h263_slice_structured
){
put_bits
(
&
s
->
pb
,
1
,
1
);
a
ssert
(
s
->
mb_x
==
0
&&
s
->
mb_y
==
0
);
a
v_assert1
(
s
->
mb_x
==
0
&&
s
->
mb_y
==
0
);
ff_h263_encode_mba
(
s
);
put_bits
(
&
s
->
pb
,
1
,
1
);
...
...
@@ -396,7 +393,7 @@ static void h263_encode_block(MpegEncContext * s, DCTELEM * block, int n)
put_bits
(
&
s
->
pb
,
1
,
last
);
put_bits
(
&
s
->
pb
,
6
,
run
);
a
ssert
(
slevel
!=
0
);
a
v_assert2
(
slevel
!=
0
);
if
(
level
<
128
)
put_sbits
(
&
s
->
pb
,
8
,
slevel
);
...
...
@@ -549,7 +546,7 @@ void ff_h263_encode_mb(MpegEncContext * s,
s
->
mv_bits
+=
get_bits_diff
(
s
);
}
}
else
{
a
ssert
(
s
->
mb_intra
);
a
v_assert2
(
s
->
mb_intra
);
cbp
=
0
;
if
(
s
->
h263_aic
)
{
...
...
@@ -728,8 +725,8 @@ static void init_mv_penalty_and_fcode(MpegEncContext *s)
static
void
init_uni_h263_rl_tab
(
RLTable
*
rl
,
uint32_t
*
bits_tab
,
uint8_t
*
len_tab
){
int
slevel
,
run
,
last
;
a
ssert
(
MAX_LEVEL
>=
64
);
a
ssert
(
MAX_RUN
>=
63
);
a
v_assert0
(
MAX_LEVEL
>=
64
);
a
v_assert0
(
MAX_RUN
>=
63
);
for
(
slevel
=-
64
;
slevel
<
64
;
slevel
++
){
if
(
slevel
==
0
)
continue
;
...
...
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