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
30000744
Commit
30000744
authored
Jun 16, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo_common.h: use av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
809d71d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mpegvideo_common.h
libavcodec/mpegvideo_common.h
+4
-3
No files found.
libavcodec/mpegvideo_common.h
View file @
30000744
...
...
@@ -31,6 +31,7 @@
#define AVCODEC_MPEGVIDEO_COMMON_H
#include <string.h>
#include "libavutil/avassert.h"
#include "avcodec.h"
#include "dsputil.h"
#include "mpegvideo.h"
...
...
@@ -439,7 +440,7 @@ static inline void obmc_motion(MpegEncContext *s,
int
i
;
uint8_t
*
ptr
[
5
];
a
ssert
(
s
->
quarter_sample
==
0
);
a
v_assert2
(
s
->
quarter_sample
==
0
);
for
(
i
=
0
;
i
<
5
;
i
++
){
if
(
i
&&
mv
[
i
][
0
]
==
mv
[
MID
][
0
]
&&
mv
[
i
][
1
]
==
mv
[
MID
][
1
]){
...
...
@@ -649,7 +650,7 @@ static av_always_inline void MPV_motion_internal(MpegEncContext *s,
const
int
mot_stride
=
s
->
b8_stride
;
const
int
mot_xy
=
mb_x
*
2
+
mb_y
*
2
*
mot_stride
;
a
ssert
(
!
s
->
mb_skipped
);
a
v_assert2
(
!
s
->
mb_skipped
);
memcpy
(
mv_cache
[
1
][
1
],
s
->
current_picture
.
f
.
motion_val
[
0
][
mot_xy
],
sizeof
(
int16_t
)
*
4
);
memcpy
(
mv_cache
[
2
][
1
],
s
->
current_picture
.
f
.
motion_val
[
0
][
mot_xy
+
mot_stride
],
sizeof
(
int16_t
)
*
4
);
...
...
@@ -870,7 +871,7 @@ static av_always_inline void MPV_motion_internal(MpegEncContext *s,
}
}
break
;
default
:
a
ssert
(
0
);
default
:
a
v_assert2
(
0
);
}
}
...
...
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