summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavformat/avio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 63e8287..663789e 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -663,8 +663,7 @@ int ffurl_shutdown(URLContext *h, int flags)
int ff_check_interrupt(AVIOInterruptCB *cb)
{
- int ret;
- if (cb && cb->callback && (ret = cb->callback(cb->opaque)))
- return ret;
+ if (cb && cb->callback)
+ return cb->callback(cb->opaque);
return 0;
}
OpenPOWER on IntegriCloud