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
e6690b6a
Commit
e6690b6a
authored
Aug 06, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo.c: convert some asserts to av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3e0b4e32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mpegvideo.c
libavcodec/mpegvideo.c
+5
-5
No files found.
libavcodec/mpegvideo.c
View file @
e6690b6a
...
...
@@ -1554,7 +1554,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict)
else
if
(
!
USES_LIST
(
mb_type
,
0
))
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"<"
);
else
{
a
ssert
(
USES_LIST
(
mb_type
,
0
)
&&
USES_LIST
(
mb_type
,
1
));
a
v_assert2
(
USES_LIST
(
mb_type
,
0
)
&&
USES_LIST
(
mb_type
,
1
));
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"X"
);
}
...
...
@@ -1739,7 +1739,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict)
}
else
if
(
!
USES_LIST
(
mb_type
,
0
))
{
COLOR
(
0
,
48
)
}
else
{
a
ssert
(
USES_LIST
(
mb_type
,
0
)
&&
USES_LIST
(
mb_type
,
1
));
a
v_assert2
(
USES_LIST
(
mb_type
,
0
)
&&
USES_LIST
(
mb_type
,
1
));
COLOR
(
300
,
48
)
}
...
...
@@ -2165,7 +2165,7 @@ static inline void MPV_motion_lowres(MpegEncContext *s,
}
break
;
default:
a
ssert
(
0
);
a
v_assert2
(
0
);
}
}
...
...
@@ -2333,7 +2333,7 @@ void MPV_decode_mb_internal(MpegEncContext *s, DCTELEM block[12][64],
if
(
s
->
mb_skipped
)
{
s
->
mb_skipped
=
0
;
a
ssert
(
s
->
pict_type
!=
AV_PICTURE_TYPE_I
);
a
v_assert2
(
s
->
pict_type
!=
AV_PICTURE_TYPE_I
);
*
mbskip_ptr
=
1
;
}
else
if
(
!
s
->
current_picture
.
f
.
reference
)
{
*
mbskip_ptr
=
1
;
...
...
@@ -2627,7 +2627,7 @@ void ff_init_block_index(MpegEncContext *s){ //FIXME maybe rename
s
->
dest
[
0
]
+=
(
s
->
mb_y
>>
1
)
*
linesize
<<
mb_size
;
s
->
dest
[
1
]
+=
(
s
->
mb_y
>>
1
)
*
uvlinesize
<<
(
mb_size
-
s
->
chroma_y_shift
);
s
->
dest
[
2
]
+=
(
s
->
mb_y
>>
1
)
*
uvlinesize
<<
(
mb_size
-
s
->
chroma_y_shift
);
a
ssert
((
s
->
mb_y
&
1
)
==
(
s
->
picture_structure
==
PICT_BOTTOM_FIELD
));
a
v_assert1
((
s
->
mb_y
&
1
)
==
(
s
->
picture_structure
==
PICT_BOTTOM_FIELD
));
}
}
}
...
...
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