Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -453,10 +453,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 452 unmodified lines | |||
| 453 | true_peak = tmp; | 453 | true_peak = tmp; |
| 454 | } | 454 | } |
| 455 | 455 | ||
| 456 | offset = s->target_i - global; | 456 | offset = pow(10., (s->target_i - global) / 20.); |
| 457 | offset_tp = true_peak + offset; | 457 | offset_tp = true_peak * offset; |
| 458 | s->offset = offset_tp < s->target_tp ? offset : s->target_tp - true_peak; | 458 | s->offset = offset_tp < s->target_tp ? offset : s->target_tp - true_peak; |
| 459 | s->offset = pow(10., s->offset / 20.); | ||
| 460 | s->frame_type = LINEAR_MODE; | 459 | s->frame_type = LINEAR_MODE; |
| 461 | } | 460 | } |
| 462 | 461 | ||