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
7a046364
Commit
7a046364
authored
Jul 28, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svq1 mv array size fix
Originally committed as revision 3361 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
15c8dbe7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
svq1.c
libavcodec/svq1.c
+5
-5
ffmpeg.regression.ref
tests/ffmpeg.regression.ref
+4
-4
No files found.
libavcodec/svq1.c
View file @
7a046364
...
...
@@ -1108,10 +1108,10 @@ static void svq1_encode_plane(SVQ1Context *s, int plane, unsigned char *src_plan
s
->
m
.
me_method
=
s
->
avctx
->
me_method
;
if
(
!
s
->
motion_val8
[
plane
]){
s
->
motion_val8
[
plane
]
=
av_mallocz
(
s
->
m
.
b8_stride
*
block_height
*
2
*
2
*
sizeof
(
int16_t
));
s
->
motion_val16
[
plane
]
=
av_mallocz
(
s
->
m
.
mb_stride
*
block_height
*
2
*
sizeof
(
int16_t
));
s
->
motion_val8
[
plane
]
=
av_mallocz
(
(
s
->
m
.
b8_stride
*
block_height
*
2
+
2
)
*
2
*
sizeof
(
int16_t
));
s
->
motion_val16
[
plane
]
=
av_mallocz
(
(
s
->
m
.
mb_stride
*
(
block_height
+
2
)
+
1
)
*
2
*
sizeof
(
int16_t
));
}
s
->
m
.
mb_type
=
s
->
mb_type
;
//dummies, to avoid segfaults
...
...
@@ -1120,8 +1120,8 @@ static void svq1_encode_plane(SVQ1Context *s, int plane, unsigned char *src_plan
s
->
m
.
current_picture
.
mc_mb_var
=
(
uint16_t
*
)
s
->
dummy
;
s
->
m
.
current_picture
.
mb_type
=
s
->
dummy
;
s
->
m
.
current_picture
.
motion_val
[
0
]
=
s
->
motion_val8
[
plane
];
s
->
m
.
p_mv_table
=
s
->
motion_val16
[
plane
];
s
->
m
.
current_picture
.
motion_val
[
0
]
=
s
->
motion_val8
[
plane
]
+
2
;
s
->
m
.
p_mv_table
=
s
->
motion_val16
[
plane
]
+
s
->
m
.
mb_stride
+
1
;
s
->
m
.
dsp
=
s
->
dsp
;
//move
ff_init_me
(
&
s
->
m
);
...
...
tests/ffmpeg.regression.ref
View file @
7a046364
...
...
@@ -107,10 +107,10 @@ stddev: 8.08 PSNR:29.97 bytes:7602176
2653690 ./data/a-ffv1.avi
799d3db687f6cdd7a837ec156efc171f *./data/out.yuv
stddev: 0.00 PSNR:99.99 bytes:7602176
9ebbef45611d99d4134c1dac04c88378
*./data/a-svq1.mov
138401
5
./data/a-svq1.mov
f14dcf0f15be154c1384086c3d0e8a13
*./data/out.yuv
stddev: 10.9
8
PSNR:27.30 bytes:7602176
c672f70e2176a897b1ba816749574751
*./data/a-svq1.mov
138401
9
./data/a-svq1.mov
ccc201054669e94717022bb4f2aea4ce
*./data/out.yuv
stddev: 10.9
9
PSNR:27.30 bytes:7602176
21f8ff9f1daacd9133683bb4ea0f50a4 *./data/a-mp2.mp2
95712 ./data/a-mp2.mp2
624d9789f3ac193bbae4af3bd8cb02b7 *./data/out.wav
...
...
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