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
20ec0d2a
Commit
20ec0d2a
authored
Oct 13, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo: fix motion_val checks
Fixes CID604124 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f4d73f0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mpegvideo.c
libavcodec/mpegvideo.c
+3
-3
No files found.
libavcodec/mpegvideo.c
View file @
20ec0d2a
...
...
@@ -1780,7 +1780,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict)
int
mb_x
;
for
(
mb_x
=
0
;
mb_x
<
s
->
mb_width
;
mb_x
++
)
{
const
int
mb_index
=
mb_x
+
mb_y
*
s
->
mb_stride
;
if
((
s
->
avctx
->
debug_mv
)
&&
pict
->
motion_val
)
{
if
((
s
->
avctx
->
debug_mv
)
&&
pict
->
motion_val
[
0
]
)
{
int
type
;
for
(
type
=
0
;
type
<
3
;
type
++
)
{
int
direction
=
0
;
...
...
@@ -1859,7 +1859,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict)
}
}
}
if
((
s
->
avctx
->
debug
&
FF_DEBUG_VIS_QP
)
&&
pict
->
motion_val
)
{
if
((
s
->
avctx
->
debug
&
FF_DEBUG_VIS_QP
))
{
uint64_t
c
=
(
pict
->
qscale_table
[
mb_index
]
*
128
/
31
)
*
0x0101010101010101ULL
;
int
y
;
...
...
@@ -1873,7 +1873,7 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict)
}
}
if
((
s
->
avctx
->
debug
&
FF_DEBUG_VIS_MB_TYPE
)
&&
pict
->
motion_val
)
{
pict
->
motion_val
[
0
]
)
{
int
mb_type
=
pict
->
mb_type
[
mb_index
];
uint64_t
u
,
v
;
int
y
;
...
...
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