]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_hwdownload.c
Merge commit 'b8de14bcdf876c7e236a6dd2ad35342ff4b42cf8'
[ffmpeg] / libavfilter / vf_hwdownload.c
index 2dcc9fa059b7520d1e2d95231f356141a9493763..1e8d81906daf4cfe51747d5985171c72202c3fbf 100644 (file)
@@ -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;
 }