Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
cdb3f2f5
Commit
cdb3f2f5
authored
Jul 09, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg12enc: switch to av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c88a8327
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mpeg12enc.c
libavcodec/mpeg12enc.c
+7
-7
No files found.
libavcodec/mpeg12enc.c
View file @
cdb3f2f5
...
...
@@ -323,7 +323,7 @@ static inline void encode_mb_skip_run(MpegEncContext *s, int run){
static
av_always_inline
void
put_qscale
(
MpegEncContext
*
s
)
{
if
(
s
->
q_scale_type
){
a
ssert
(
s
->
qscale
>=
1
&&
s
->
qscale
<=
12
);
a
v_assert2
(
s
->
qscale
>=
1
&&
s
->
qscale
<=
12
);
put_bits
(
&
s
->
pb
,
5
,
inv_non_linear_qscale
[
s
->
qscale
]);
}
else
{
put_bits
(
&
s
->
pb
,
5
,
s
->
qscale
);
...
...
@@ -395,7 +395,7 @@ void ff_mpeg1_encode_picture_header(MpegEncContext *s, int picture_number)
}
put_bits
(
&
s
->
pb
,
2
,
s
->
intra_dc_precision
);
a
ssert
(
s
->
picture_structure
==
PICT_FRAME
);
a
v_assert0
(
s
->
picture_structure
==
PICT_FRAME
);
put_bits
(
&
s
->
pb
,
2
,
s
->
picture_structure
);
if
(
s
->
progressive_sequence
)
{
put_bits
(
&
s
->
pb
,
1
,
0
);
/* no repeat */
...
...
@@ -474,7 +474,7 @@ static av_always_inline void mpeg1_encode_mb_internal(MpegEncContext *s,
}
}
else
{
if
(
first_mb
){
a
ssert
(
s
->
mb_skip_run
==
0
);
a
v_assert0
(
s
->
mb_skip_run
==
0
);
encode_mb_skip_run
(
s
,
s
->
mb_x
);
}
else
{
encode_mb_skip_run
(
s
,
s
->
mb_skip_run
);
...
...
@@ -537,7 +537,7 @@ static av_always_inline void mpeg1_encode_mb_internal(MpegEncContext *s,
s
->
last_mv
[
0
][
1
][
0
]
=
s
->
last_mv
[
0
][
0
][
0
]
=
motion_x
;
s
->
last_mv
[
0
][
1
][
1
]
=
s
->
last_mv
[
0
][
0
][
1
]
=
motion_y
;
}
else
{
a
ssert
(
!
s
->
frame_pred_frame_dct
&&
s
->
mv_type
==
MV_TYPE_FIELD
);
a
v_assert2
(
!
s
->
frame_pred_frame_dct
&&
s
->
mv_type
==
MV_TYPE_FIELD
);
if
(
cbp
)
{
if
(
s
->
dquant
){
...
...
@@ -604,8 +604,8 @@ static av_always_inline void mpeg1_encode_mb_internal(MpegEncContext *s,
s
->
b_count
++
;
}
}
else
{
a
ssert
(
s
->
mv_type
==
MV_TYPE_FIELD
);
a
ssert
(
!
s
->
frame_pred_frame_dct
);
a
v_assert2
(
s
->
mv_type
==
MV_TYPE_FIELD
);
a
v_assert2
(
!
s
->
frame_pred_frame_dct
);
if
(
cbp
){
// With coded bloc pattern
if
(
s
->
dquant
)
{
if
(
s
->
mv_dir
==
MV_DIR_FORWARD
)
...
...
@@ -700,7 +700,7 @@ static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code)
sign
=
1
;
}
a
ssert
(
code
>
0
&&
code
<=
16
);
a
v_assert2
(
code
>
0
&&
code
<=
16
);
put_bits
(
&
s
->
pb
,
ff_mpeg12_mbMotionVectorTable
[
code
][
1
],
...
...
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