mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avformat: simplify avformat_close_input
avio_close checks by itself for NULL condition.
This commit is contained in:
parent
58139e141b
commit
4d1f443c3d
@ -2709,8 +2709,8 @@ void avformat_close_input(AVFormatContext **ps)
|
|||||||
s->iformat->read_close(s);
|
s->iformat->read_close(s);
|
||||||
avformat_free_context(s);
|
avformat_free_context(s);
|
||||||
*ps = NULL;
|
*ps = NULL;
|
||||||
if (pb)
|
|
||||||
avio_close(pb);
|
avio_close(pb);
|
||||||
}
|
}
|
||||||
|
|
||||||
AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
|
AVStream *avformat_new_stream(AVFormatContext *s, AVCodec *c)
|
||||||
|
Loading…
Reference in New Issue
Block a user