diff options
author | Jun Zhao <mypopydev@gmail.com> | 2018-04-08 08:05:08 +0800 |
---|---|---|
committer | Jun Zhao <jun.zhao@intel.com> | 2018-05-06 15:07:28 +0800 |
commit | 4d3e9e31356b4d7d4196f271e19679ea65e51223 (patch) | |
tree | 16340e05029dc343147bd360fa2f22c81794eab9 /libavformat | |
parent | 08032331ac4ca7a3de7d0e0428bd35f0d2e954be (diff) | |
download | ffmpeg-4d3e9e31356b4d7d4196f271e19679ea65e51223.tar.gz |
avformat/avio: make the logic simple
remove the "ret" to make the code simple and generic.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index 63e82872f7..663789ec02 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; } |