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
380232fa
Commit
380232fa
authored
Dec 05, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
snow: fix build after
594d4d5d
parent
92dad668
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
snow.c
libavcodec/snow.c
+3
-2
snowenc.c
libavcodec/snowenc.c
+2
-1
No files found.
libavcodec/snow.c
View file @
380232fa
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "avcodec.h"
#include "avcodec.h"
#include "dsputil.h"
#include "dsputil.h"
#include "dwt.h"
#include "dwt.h"
#include "internal.h"
#include "snow.h"
#include "snow.h"
#include "snowdata.h"
#include "snowdata.h"
...
@@ -458,7 +459,7 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
...
@@ -458,7 +459,7 @@ av_cold int ff_snow_common_init(AVCodecContext *avctx){
for
(
j
=
0
;
j
<
MAX_REF_FRAMES
;
j
++
)
for
(
j
=
0
;
j
<
MAX_REF_FRAMES
;
j
++
)
ff_scale_mv_ref
[
i
][
j
]
=
256
*
(
i
+
1
)
/
(
j
+
1
);
ff_scale_mv_ref
[
i
][
j
]
=
256
*
(
i
+
1
)
/
(
j
+
1
);
if
((
ret
=
s
->
ff_get_buffer
(
s
->
avctx
,
&
s
->
mconly_picture
))
<
0
)
{
if
((
ret
=
ff_get_buffer
(
s
->
avctx
,
&
s
->
mconly_picture
))
<
0
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"get_buffer() failed
\n
"
);
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"get_buffer() failed
\n
"
);
return
ret
;
return
ret
;
}
}
...
@@ -623,7 +624,7 @@ int ff_snow_frame_start(SnowContext *s){
...
@@ -623,7 +624,7 @@ int ff_snow_frame_start(SnowContext *s){
}
}
s
->
current_picture
.
reference
=
1
;
s
->
current_picture
.
reference
=
1
;
if
(
s
->
ff_get_buffer
(
s
->
avctx
,
&
s
->
current_picture
)
<
0
){
if
(
ff_get_buffer
(
s
->
avctx
,
&
s
->
current_picture
)
<
0
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"get_buffer() failed
\n
"
);
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"get_buffer() failed
\n
"
);
return
-
1
;
return
-
1
;
}
}
...
...
libavcodec/snowenc.c
View file @
380232fa
...
@@ -23,6 +23,7 @@
...
@@ -23,6 +23,7 @@
#include "libavutil/opt.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "avcodec.h"
#include "dsputil.h"
#include "dsputil.h"
#include "internal.h"
#include "dwt.h"
#include "dwt.h"
#include "snow.h"
#include "snow.h"
...
@@ -239,7 +240,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
...
@@ -239,7 +240,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
ff_set_cmp
(
&
s
->
dsp
,
s
->
dsp
.
me_cmp
,
s
->
avctx
->
me_cmp
);
ff_set_cmp
(
&
s
->
dsp
,
s
->
dsp
.
me_cmp
,
s
->
avctx
->
me_cmp
);
ff_set_cmp
(
&
s
->
dsp
,
s
->
dsp
.
me_sub_cmp
,
s
->
avctx
->
me_sub_cmp
);
ff_set_cmp
(
&
s
->
dsp
,
s
->
dsp
.
me_sub_cmp
,
s
->
avctx
->
me_sub_cmp
);
s
->
ff_get_buffer
(
s
->
avctx
,
&
s
->
input_picture
);
ff_get_buffer
(
s
->
avctx
,
&
s
->
input_picture
);
if
(
s
->
avctx
->
me_method
==
ME_ITER
){
if
(
s
->
avctx
->
me_method
==
ME_ITER
){
int
i
;
int
i
;
...
...
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