avformat/avio: make the logic simple
authorJun Zhao <mypopydev@gmail.com>
Sun, 8 Apr 2018 00:05:08 +0000 (08:05 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 6 May 2018 07:07:28 +0000 (15:07 +0800)
remove the "ret" to make the code simple and generic.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
libavformat/avio.c

index 63e8287..663789e 100644 (file)
@@ -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;
 }