[FFmpeg-cvslog] libavfilter/vf_hwdownload: show error when ff_formats_ref fails
dsmudhar
git at videolan.org
Tue May 24 20:36:53 CEST 2016
ffmpeg | branch: master | dsmudhar <ds.mudhar at gmail.com> | Sun May 22 06:44:36 2016 +0530| [04d35004c3d050c0bede909e4d1b30f0dc379cfa] | committer: Michael Niedermayer
libavfilter/vf_hwdownload: show error when ff_formats_ref fails
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=04d35004c3d050c0bede909e4d1b30f0dc379cfa
---
libavfilter/vf_hwdownload.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_hwdownload.c b/libavfilter/vf_hwdownload.c
index 2dcc9fa..79ea82d 100644
--- a/libavfilter/vf_hwdownload.c
+++ b/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;
}
More information about the ffmpeg-cvslog
mailing list