Skip to content
Snippets Groups Projects
Commit 2b1324bd authored by wm4's avatar wm4 Committed by Anton Khirnov
Browse files

lavf: allow avformat_close_input() with NULL


This is consistent with how other destructors behave.

Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 9b9285bb
No related branches found
No related tags found
No related merge requests found
......@@ -2733,7 +2733,12 @@ void avformat_free_context(AVFormatContext *s)
void avformat_close_input(AVFormatContext **ps)
{
AVFormatContext *s = *ps;
AVIOContext *pb = s->pb;
AVIOContext *pb;
if (!*ps)
return;
pb = s->pb;
if ((s->iformat && s->iformat->flags & AVFMT_NOFILE) ||
(s->flags & AVFMT_FLAG_CUSTOM_IO))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment