From 4d3e9e31356b4d7d4196f271e19679ea65e51223 Mon Sep 17 00:00:00 2001 From: Jun Zhao Date: Sun, 8 Apr 2018 08:05:08 +0800 Subject: avformat/avio: make the logic simple remove the "ret" to make the code simple and generic. Signed-off-by: Jun Zhao --- libavformat/avio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libavformat/avio.c') 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; } -- cgit v1.1