libavfilter/vf_hwdownload: show error when ff_formats_ref fails

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/191/merge
dsmudhar 9 years ago committed by Michael Niedermayer
parent 35b37591c0
commit 04d35004c3
  1. 6
      libavfilter/vf_hwdownload.c

@ -56,8 +56,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;
}

Loading…
Cancel
Save