Browse Source

avformat/avio: make the logic simple

remove the "ret" to make the code simple and generic.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
tags/n4.1
Jun Zhao Jun Zhao 8 years ago
parent
commit
4d3e9e3135
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      libavformat/avio.c

+ 2
- 3
libavformat/avio.c View 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;
}

Loading…
Cancel
Save