You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02: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:
@@ -663,8 +663,7 @@ int ffurl_shutdown(URLContext *h, int flags)
|
|||||||
|
|
||||||
int ff_check_interrupt(AVIOInterruptCB *cb)
|
int ff_check_interrupt(AVIOInterruptCB *cb)
|
||||||
{
|
{
|
||||||
int ret;
|
if (cb && cb->callback)
|
||||||
if (cb && cb->callback && (ret = cb->callback(cb->opaque)))
|
return cb->callback(cb->opaque);
|
||||||
return ret;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user