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
4e3fc468
Commit
4e3fc468
authored
Jun 07, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_mvpred: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3422e7c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
h264_mvpred.h
libavcodec/h264_mvpred.h
+4
-5
No files found.
libavcodec/h264_mvpred.h
View file @
4e3fc468
...
...
@@ -31,9 +31,8 @@
#include "internal.h"
#include "avcodec.h"
#include "h264.h"
#include "libavutil/avassert.h"
//#undef NDEBUG
#include <assert.h>
static
av_always_inline
int
fetch_diagonal_mv
(
H264Context
*
h
,
const
int16_t
**
C
,
int
i
,
int
list
,
int
part_width
)
...
...
@@ -104,7 +103,7 @@ static av_always_inline void pred_motion(H264Context *const h, int n,
const
int16_t
*
C
;
int
diagonal_ref
,
match_count
;
a
ssert
(
part_width
==
1
||
part_width
==
2
||
part_width
==
4
);
a
v_assert2
(
part_width
==
1
||
part_width
==
2
||
part_width
==
4
);
/* mv_cache
* B . . A T T T T
...
...
@@ -486,7 +485,7 @@ static void fill_decode_caches(H264Context *h, int mb_type)
}
else
{
int
left_typei
=
s
->
current_picture
.
f
.
mb_type
[
left_xy
[
LTOP
]
+
s
->
mb_stride
];
a
ssert
(
left_xy
[
LTOP
]
==
left_xy
[
LBOT
]);
a
v_assert2
(
left_xy
[
LTOP
]
==
left_xy
[
LBOT
]);
if
(
!
((
left_typei
&
type_mask
)
&&
(
left_type
[
LTOP
]
&
type_mask
)))
{
h
->
topleft_samples_available
&=
0xDF5F
;
h
->
left_samples_available
&=
0x5F5F
;
...
...
@@ -611,7 +610,7 @@ static void fill_decode_caches(H264Context *h, int mb_type)
int16_t
(
*
mv
)[
2
]
=
s
->
current_picture
.
f
.
motion_val
[
list
];
if
(
!
USES_LIST
(
mb_type
,
list
))
continue
;
a
ssert
(
!
(
IS_DIRECT
(
mb_type
)
&&
!
h
->
direct_spatial_mv_pred
));
a
v_assert2
(
!
(
IS_DIRECT
(
mb_type
)
&&
!
h
->
direct_spatial_mv_pred
));
if
(
USES_LIST
(
top_type
,
list
))
{
const
int
b_xy
=
h
->
mb2b_xy
[
top_xy
]
+
3
*
b_stride
;
...
...
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