]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_signalstats.c
avformat/dump: Remove remnants of codec timebase
[ffmpeg] / libavfilter / vf_signalstats.c
index 8b2a9ca7c25718c27fe62b66d766de41ccf0b26e..6f0ff53029c6c231a37ce4f812ae4bcbf13366c9 100644 (file)
@@ -150,7 +150,7 @@ static AVFrame *alloc_frame(enum AVPixelFormat pixfmt, int w, int h)
     frame->width  = w;
     frame->height = h;
 
-    if (av_frame_get_buffer(frame, 32) < 0) {
+    if (av_frame_get_buffer(frame, 0) < 0) {
         av_frame_free(&frame);
         return NULL;
     }
@@ -168,13 +168,13 @@ static int config_output(AVFilterLink *outlink)
     s->vsub = desc->log2_chroma_h;
     s->depth = desc->comp[0].depth;
     s->maxsize = 1 << s->depth;
-        s->histy = av_malloc_array(s->maxsize, sizeof(*s->histy));
-        s->histu = av_malloc_array(s->maxsize, sizeof(*s->histu));
-        s->histv = av_malloc_array(s->maxsize, sizeof(*s->histv));
-        s->histsat = av_malloc_array(s->maxsize, sizeof(*s->histsat));
+    s->histy = av_malloc_array(s->maxsize, sizeof(*s->histy));
+    s->histu = av_malloc_array(s->maxsize, sizeof(*s->histu));
+    s->histv = av_malloc_array(s->maxsize, sizeof(*s->histv));
+    s->histsat = av_malloc_array(s->maxsize, sizeof(*s->histsat));
 
-        if (!s->histy || !s->histu || !s->histv || !s->histsat)
-            return AVERROR(ENOMEM);
+    if (!s->histy || !s->histu || !s->histv || !s->histsat)
+        return AVERROR(ENOMEM);
 
     outlink->w = inlink->w;
     outlink->h = inlink->h;
@@ -1012,7 +1012,7 @@ static const AVFilterPad signalstats_outputs[] = {
     { NULL }
 };
 
-AVFilter ff_vf_signalstats = {
+const AVFilter ff_vf_signalstats = {
     .name          = "signalstats",
     .description   = "Generate statistics from video analysis.",
     .init          = init,