git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ffplay: fix mem leak when opening input or parsing options fail.
[ffmpeg.git]
/
ffplay.c
diff --git
a/ffplay.c
b/ffplay.c
index
f79161d
..
1914a66
100644
(file)
--- a/
ffplay.c
+++ b/
ffplay.c
@@
-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) {