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
257f0d09
Commit
257f0d09
authored
Aug 27, 2017
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcoec/snowenc: silence some deprecation warnings
parent
435dd2ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
snowenc.c
libavcodec/snowenc.c
+10
-0
No files found.
libavcodec/snowenc.c
View file @
257f0d09
...
...
@@ -1644,8 +1644,12 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
}
ff_snow_frame_start
(
s
);
#if FF_API_CODED_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
av_frame_unref
(
avctx
->
coded_frame
);
ret
=
av_frame_ref
(
avctx
->
coded_frame
,
s
->
current_picture
);
FF_ENABLE_DEPRECATION_WARNINGS
#endif
if
(
ret
<
0
)
return
ret
;
...
...
@@ -1675,7 +1679,9 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s
->
m
.
f_code
=
1
;
s
->
m
.
pict_type
=
pic
->
pict_type
;
#if FF_API_MOTION_EST
FF_DISABLE_DEPRECATION_WARNINGS
s
->
m
.
me_method
=
s
->
avctx
->
me_method
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
s
->
m
.
motion_est
=
s
->
motion_est
;
s
->
m
.
me
.
scene_change_score
=
0
;
...
...
@@ -1878,10 +1884,14 @@ FF_ENABLE_DEPRECATION_WARNINGS
if
(
avctx
->
flags
&
AV_CODEC_FLAG_PASS1
)
ff_write_pass1_stats
(
&
s
->
m
);
s
->
m
.
last_pict_type
=
s
->
m
.
pict_type
;
#if FF_API_STAT_BITS
FF_DISABLE_DEPRECATION_WARNINGS
avctx
->
frame_bits
=
s
->
m
.
frame_bits
;
avctx
->
mv_bits
=
s
->
m
.
mv_bits
;
avctx
->
misc_bits
=
s
->
m
.
misc_bits
;
avctx
->
p_tex_bits
=
s
->
m
.
p_tex_bits
;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
emms_c
();
...
...
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