projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f9b0ef
)
lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails
author
David Goldwich
<david.goldwich@gmail.com>
Sat, 17 Sep 2011 11:50:35 +0000
(13:50 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Mon, 19 Sep 2011 10:03:56 +0000
(12:03 +0200)
Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
ae71763
..
05d4fda
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-470,8
+470,8
@@
int av_open_input_stream(AVFormatContext **ic_ptr,
goto fail;
ic->pb = ic->pb ? ic->pb : pb; // don't leak custom pb if it wasn't set above
- *ic_ptr = ic;
fail:
+ *ic_ptr = ic;
av_dict_free(&opts);
return err;
}