OSDN Git Service

avfilter/scale_npp: fix passthrough mode
authorYogender Gupta <ygupta@nvidia.com>
Mon, 24 Oct 2016 12:32:01 +0000 (18:02 +0530)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 25 Oct 2016 21:17:31 +0000 (23:17 +0200)
Reviewed-by: Timo Rothenpieler <timo@rothenpieler.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_scale_npp.c

index 35abe39..8eafdc8 100644 (file)
@@ -349,7 +349,7 @@ static int init_processing_chain(AVFilterContext *ctx, int in_width, int in_heig
     }
 
     if (last_stage < 0)
-        return AVERROR_BUG;
+        return 0;
     ctx->outputs[0]->hw_frames_ctx = av_buffer_ref(s->stages[last_stage].frames_ctx);
     if (!ctx->outputs[0]->hw_frames_ctx)
         return AVERROR(ENOMEM);