]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_scale_npp.c
Merge commit '0b1bd1b2057d41fd0ccba7317911c484a50f9207'
[ffmpeg] / libavfilter / vf_scale_npp.c
index 35abe39a948e6ef75f67b144546c541586267f43..8eafdc81fd56fe6bb5a9560189006553323e38c0 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);