mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
libx264: Fix noise_reduction option assignment
First check the context, then check internal option. Drop the ! typo.
Introduced in 60f0fde309.
This commit is contained in:
parent
ec4c483976
commit
0837d1dfe2
1 changed files with 2 additions and 2 deletions
|
|
@ -457,11 +457,11 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
|||
x4->params.analyse.i_me_range = avctx->me_range;
|
||||
#if FF_API_PRIVATE_OPT
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
if (!x4->noise_reduction >= 0)
|
||||
if (avctx->noise_reduction >= 0)
|
||||
x4->noise_reduction = avctx->noise_reduction;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
if (!x4->noise_reduction >= 0)
|
||||
if (x4->noise_reduction >= 0)
|
||||
x4->params.analyse.i_noise_reduction = x4->noise_reduction;
|
||||
if (avctx->me_subpel_quality >= 0)
|
||||
x4->params.analyse.i_subpel_refine = avctx->me_subpel_quality;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue