avfilter/vf_extractplanes: use ff_outlink_get_status()
authorPaul B Mahol <onemda@gmail.com>
Sat, 3 Nov 2018 17:01:53 +0000 (18:01 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sat, 3 Nov 2018 17:24:19 +0000 (18:24 +0100)
libavfilter/vf_extractplanes.c

index c1c8e69..f917157 100644 (file)
 #include "libavutil/opt.h"
 #include "libavutil/pixdesc.h"
 
-#define FF_INTERNAL_FIELDS 1
-#include "libavfilter/framequeue.h"
-
 #include "avfilter.h"
 #include "drawutils.h"
+#include "filters.h"
 #include "internal.h"
 
 #define PLANE_R 0x01
@@ -282,7 +280,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
         const int idx = s->map[i];
         AVFrame *out;
 
-        if (outlink->status_in)
+        if (ff_outlink_get_status(outlink))
             continue;
 
         out = ff_get_video_buffer(outlink, outlink->w, outlink->h);