Commit 4d3e9e31 authored by Jun Zhao's avatar Jun Zhao Committed by Jun Zhao

avformat/avio: make the logic simple

remove the "ret" to make the code simple and generic.
Signed-off-by: 's avatarJun Zhao <mypopydev@gmail.com>
parent 08032331
...@@ -663,8 +663,7 @@ int ffurl_shutdown(URLContext *h, int flags) ...@@ -663,8 +663,7 @@ int ffurl_shutdown(URLContext *h, int flags)
int ff_check_interrupt(AVIOInterruptCB *cb) int ff_check_interrupt(AVIOInterruptCB *cb)
{ {
int ret; if (cb && cb->callback)
if (cb && cb->callback && (ret = cb->callback(cb->opaque))) return cb->callback(cb->opaque);
return ret;
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment