Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
b4d44367
Commit
b4d44367
authored
Jun 07, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h261enc: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
07732b4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
h261enc.c
libavcodec/h261enc.c
+5
-4
No files found.
libavcodec/h261enc.c
View file @
b4d44367
...
...
@@ -25,6 +25,7 @@
* H.261 encoder.
*/
#include "libavutil/avassert.h"
#include "dsputil.h"
#include "avcodec.h"
#include "mpegvideo.h"
...
...
@@ -194,7 +195,7 @@ void ff_h261_encode_mb(MpegEncContext * s,
h
->
mtype
+=
3
;
if
(
cbp
||
s
->
dquant
)
h
->
mtype
++
;
a
ssert
(
h
->
mtype
>
1
);
a
v_assert1
(
h
->
mtype
>
1
);
}
if
(
s
->
dquant
)
...
...
@@ -221,7 +222,7 @@ void ff_h261_encode_mb(MpegEncContext * s,
h
->
previous_mba
=
h
->
current_mba
;
if
(
HAS_CBP
(
h
->
mtype
)){
a
ssert
(
cbp
>
0
);
a
v_assert1
(
cbp
>
0
);
put_bits
(
&
s
->
pb
,
ff_h261_cbp_tab
[
cbp
-
1
][
1
],
ff_h261_cbp_tab
[
cbp
-
1
][
0
]);
}
for
(
i
=
0
;
i
<
6
;
i
++
)
{
...
...
@@ -307,8 +308,8 @@ static void h261_encode_block(H261Context * h, DCTELEM * block, int n){
put_bits
(
&
s
->
pb
,
rl
->
table_vlc
[
code
][
1
],
rl
->
table_vlc
[
code
][
0
]);
if
(
code
==
rl
->
n
)
{
put_bits
(
&
s
->
pb
,
6
,
run
);
a
ssert
(
slevel
!=
0
);
a
ssert
(
level
<=
127
);
a
v_assert1
(
slevel
!=
0
);
a
v_assert1
(
level
<=
127
);
put_sbits
(
&
s
->
pb
,
8
,
slevel
);
}
else
{
put_bits
(
&
s
->
pb
,
1
,
sign
);
...
...
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