提交 90c9b494 编写于 作者: B Benoit Fouet 提交者: Michael Niedermayer

ffplay: fix mem leak when opening input or parsing options fail.

Reviewed-by: NMarton Balint <cus@passwd.hu>
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 0b9a9e0e
......@@ -3169,8 +3169,9 @@ static int read_thread(void *arg)
stream_component_close(is, is->video_stream);
if (is->subtitle_stream >= 0)
stream_component_close(is, is->subtitle_stream);
if (is->ic) {
avformat_close_input(&is->ic);
if (ic) {
avformat_close_input(&ic);
is->ic = NULL;
}
if (ret != 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册