diff mbox

[FFmpeg-devel,2/2] lavfi/ebur128: Fix mixed declarations and code

Message ID 20181023214826.31994-2-sw@jkqxz.net
State Accepted
Commit f370142ec08bf99040953916feb5fd6ec3d7e3e4
Headers show

Commit Message

Mark Thompson Oct. 23, 2018, 9:48 p.m. UTC
---
 libavfilter/f_ebur128.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Paul B Mahol Oct. 24, 2018, 7:32 a.m. UTC | #1
On 10/23/18, Mark Thompson <sw@jkqxz.net> wrote:
> ---
>  libavfilter/f_ebur128.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>

lgtm
Mark Thompson Oct. 24, 2018, 11:25 p.m. UTC | #2
On 24/10/18 08:32, Paul B Mahol wrote:
> On 10/23/18, Mark Thompson <sw@jkqxz.net> wrote:
>> ---
>>  libavfilter/f_ebur128.c | 5 +++--
>>  1 file changed, 3 insertions(+), 2 deletions(-)
>>
> 
> lgtm

Applied.

Thanks,

- Mark
diff mbox

Patch

diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c
index e03adc9ba1..f613d8def2 100644
--- a/libavfilter/f_ebur128.c
+++ b/libavfilter/f_ebur128.c
@@ -777,6 +777,7 @@  static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
                 int x, y, ret;
                 uint8_t *p;
                 double gauge_value;
+                int y_loudness_lu_graph, y_loudness_lu_gauge;
 
                 if (ebur128->gauge_type == GAUGE_TYPE_MOMENTARY) {
                     gauge_value = loudness_400 - ebur128->target;
@@ -784,8 +785,8 @@  static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
                     gauge_value = loudness_3000 - ebur128->target;
                 }
 
-                const int y_loudness_lu_graph = lu_to_y(ebur128, loudness_3000 - ebur128->target);
-                const int y_loudness_lu_gauge = lu_to_y(ebur128, gauge_value);
+                y_loudness_lu_graph = lu_to_y(ebur128, loudness_3000 - ebur128->target);
+                y_loudness_lu_gauge = lu_to_y(ebur128, gauge_value);
 
                 /* draw the graph using the short-term loudness */
                 p = pic->data[0] + ebur128->graph.y*pic->linesize[0] + ebur128->graph.x*3;