X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavformat%2Favio.c;h=663789ec024264f877d6a695f17549c722731905;hb=f32d2939555706365ad1d39aadd5ee7ce1d9fa4f;hp=63e82872f7ce095ee884d128fd77921bec13f293;hpb=7e3c4d029b8ecf17f3ae17ad6861730a9393ef09;p=ffmpeg diff --git a/libavformat/avio.c b/libavformat/avio.c index 63e82872f7c..663789ec024 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; }