You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails
Signed-off-by: David Goldwich <david.goldwich@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
committed by
Anton Khirnov
parent
7f9b0ef9a8
commit
63d64228a7
@@ -470,8 +470,8 @@ int av_open_input_stream(AVFormatContext **ic_ptr,
|
|||||||
goto fail;
|
goto fail;
|
||||||
ic->pb = ic->pb ? ic->pb : pb; // don't leak custom pb if it wasn't set above
|
ic->pb = ic->pb ? ic->pb : pb; // don't leak custom pb if it wasn't set above
|
||||||
|
|
||||||
*ic_ptr = ic;
|
|
||||||
fail:
|
fail:
|
||||||
|
*ic_ptr = ic;
|
||||||
av_dict_free(&opts);
|
av_dict_free(&opts);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user