Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
cf7d2f2d
Commit
cf7d2f2d
authored
Sep 26, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Simplify checking quant bias option
parent
84dfc426
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
dnxhdenc.c
libavcodec/dnxhdenc.c
+1
-2
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+2
-4
No files found.
libavcodec/dnxhdenc.c
View file @
cf7d2f2d
...
@@ -344,8 +344,7 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
...
@@ -344,8 +344,7 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
#if FF_API_QUANT_BIAS
#if FF_API_QUANT_BIAS
FF_DISABLE_DEPRECATION_WARNINGS
FF_DISABLE_DEPRECATION_WARNINGS
if
(
ctx
->
intra_quant_bias
==
FF_DEFAULT_QUANT_BIAS
&&
if
(
avctx
->
intra_quant_bias
!=
FF_DEFAULT_QUANT_BIAS
)
avctx
->
intra_quant_bias
!=
FF_DEFAULT_QUANT_BIAS
)
ctx
->
intra_quant_bias
=
avctx
->
intra_quant_bias
;
ctx
->
intra_quant_bias
=
avctx
->
intra_quant_bias
;
FF_ENABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS
#endif
#endif
...
...
libavcodec/mpegvideo_enc.c
View file @
cf7d2f2d
...
@@ -548,11 +548,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
...
@@ -548,11 +548,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
#if FF_API_QUANT_BIAS
#if FF_API_QUANT_BIAS
FF_DISABLE_DEPRECATION_WARNINGS
FF_DISABLE_DEPRECATION_WARNINGS
if
(
s
->
intra_quant_bias
==
FF_DEFAULT_QUANT_BIAS
&&
if
(
avctx
->
intra_quant_bias
!=
FF_DEFAULT_QUANT_BIAS
)
avctx
->
intra_quant_bias
!=
FF_DEFAULT_QUANT_BIAS
)
s
->
intra_quant_bias
=
avctx
->
intra_quant_bias
;
s
->
intra_quant_bias
=
avctx
->
intra_quant_bias
;
if
(
s
->
inter_quant_bias
==
FF_DEFAULT_QUANT_BIAS
&&
if
(
avctx
->
inter_quant_bias
!=
FF_DEFAULT_QUANT_BIAS
)
avctx
->
inter_quant_bias
!=
FF_DEFAULT_QUANT_BIAS
)
s
->
inter_quant_bias
=
avctx
->
inter_quant_bias
;
s
->
inter_quant_bias
=
avctx
->
inter_quant_bias
;
FF_ENABLE_DEPRECATION_WARNINGS
FF_ENABLE_DEPRECATION_WARNINGS
#endif
#endif
...
...
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