mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:22:05 +00:00
avformat/avio: make the logic simple
remove the "ret" to make the code simple and generic. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
This commit is contained in:
parent
08032331ac
commit
4d3e9e3135
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user