forked from FFmpeg/FFmpeg
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
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue