X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_hwdownload.c;h=1e8d81906daf4cfe51747d5985171c72202c3fbf;hb=84b39d3e144e94c1483fe1028a4525e81a759b9b;hp=2dcc9fa059b7520d1e2d95231f356141a9493763;hpb=a022c1fe76f3b0cd20336f1092942ffcfa5a4572;p=ffmpeg diff --git a/libavfilter/vf_hwdownload.c b/libavfilter/vf_hwdownload.c index 2dcc9fa059b..1e8d81906da 100644 --- a/libavfilter/vf_hwdownload.c +++ b/libavfilter/vf_hwdownload.c @@ -16,7 +16,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "libavutil/avassert.h" #include "libavutil/buffer.h" #include "libavutil/hwcontext.h" #include "libavutil/log.h" @@ -56,8 +55,10 @@ static int hwdownload_query_formats(AVFilterContext *avctx) } } - ff_formats_ref(infmts, &avctx->inputs[0]->out_formats); - ff_formats_ref(outfmts, &avctx->outputs[0]->in_formats); + if ((err = ff_formats_ref(infmts, &avctx->inputs[0]->out_formats)) < 0 || + (err = ff_formats_ref(outfmts, &avctx->outputs[0]->in_formats)) < 0) + return err; + return 0; }