lavfi/curves: avoid ctx pointer indirection.
authorClément Bœsch <ubitux@gmail.com>
Fri, 10 May 2013 21:47:28 +0000 (23:47 +0200)
committerClément Bœsch <ubitux@gmail.com>
Fri, 10 May 2013 21:47:28 +0000 (23:47 +0200)
libavfilter/vf_curves.c

index 482a046..faa4d66 100644 (file)
@@ -478,7 +478,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     int x, y, direct = 0;
     AVFilterContext *ctx = inlink->dst;
     CurvesContext *curves = ctx->priv;
-    AVFilterLink *outlink = inlink->dst->outputs[0];
+    AVFilterLink *outlink = ctx->outputs[0];
     AVFrame *out;
     uint8_t *dst;
     const uint8_t *src;