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
5ea4b18d
Commit
5ea4b18d
authored
Dec 09, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
motion_subsample_log2
Originally committed as revision 2580 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
8d7ec294
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mpegvideo.c
libavcodec/mpegvideo.c
+2
-0
No files found.
libavcodec/mpegvideo.c
View file @
5ea4b18d
...
...
@@ -316,11 +316,13 @@ static int alloc_picture(MpegEncContext *s, Picture *pic, int shared){
pic
->
motion_val
[
i
]
=
pic
->
motion_val_base
[
i
]
+
1
;
CHECKED_ALLOCZ
(
pic
->
ref_index
[
i
]
,
b8_array_size
*
sizeof
(
uint8_t
))
}
pic
->
motion_subsample_log2
=
2
;
}
else
if
(
s
->
out_format
==
FMT_H263
||
s
->
encoding
||
(
s
->
avctx
->
debug
&
(
FF_DEBUG_VIS_MV
|
FF_DEBUG_MV
))){
for
(
i
=
0
;
i
<
2
;
i
++
){
CHECKED_ALLOCZ
(
pic
->
motion_val_base
[
i
],
2
*
(
b8_array_size
+
1
)
*
sizeof
(
uint16_t
)
*
2
)
//FIXME
pic
->
motion_val
[
i
]
=
pic
->
motion_val_base
[
i
]
+
1
;
}
pic
->
motion_subsample_log2
=
3
;
}
pic
->
qstride
=
s
->
mb_stride
;
CHECKED_ALLOCZ
(
pic
->
pan_scan
,
1
*
sizeof
(
AVPanScan
))
...
...
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