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
c5362538
Commit
c5362538
authored
Mar 12, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snow: set frame defaults
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b5e5ed8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
snow.c
libavcodec/snow.c
+6
-1
No files found.
libavcodec/snow.c
View file @
c5362538
...
...
@@ -456,9 +456,14 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
FF_ALLOCZ_OR_GOTO
(
avctx
,
s
->
temp_idwt_buffer
,
width
*
sizeof
(
IDWTELEM
),
fail
);
FF_ALLOC_OR_GOTO
(
avctx
,
s
->
run_buffer
,
((
width
+
1
)
>>
1
)
*
((
height
+
1
)
>>
1
)
*
sizeof
(
*
s
->
run_buffer
),
fail
);
for
(
i
=
0
;
i
<
MAX_REF_FRAMES
;
i
++
)
for
(
i
=
0
;
i
<
MAX_REF_FRAMES
;
i
++
)
{
for
(
j
=
0
;
j
<
MAX_REF_FRAMES
;
j
++
)
ff_scale_mv_ref
[
i
][
j
]
=
256
*
(
i
+
1
)
/
(
j
+
1
);
avcodec_get_frame_defaults
(
&
s
->
last_picture
[
i
]);
}
avcodec_get_frame_defaults
(
&
s
->
mconly_picture
);
avcodec_get_frame_defaults
(
&
s
->
current_picture
);
return
0
;
fail
:
...
...
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