aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorDavid Goldwich <david.goldwich@gmail.com>2011-09-17 13:50:35 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-19 12:03:56 +0200
commit63d64228a7f31d534e3bcae87cbd37f4a0ae2dd6 (patch)
tree79f8affd63f5915b5e2fc6fca718df90c26db190 /libavformat
parent7f9b0ef9a82f6d1c839bfda8c5f498493a99998d (diff)
downloadffmpeg-63d64228a7f31d534e3bcae87cbd37f4a0ae2dd6.tar.gz
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index ae71763a87..05d4fda52c 100644
--- 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;
}