aboutsummaryrefslogtreecommitdiffstats
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-21 14:28:57 +0200
commitdd606be909437c6fac8a91ffb9dacfd6e81a1ac0 (patch)
treea9b99a422f1e94661927cc6cedc4832d40150b71
parent8c987d8291587959bd67728121ced38a0c7691d0 (diff)
downloadffmpeg-dd606be909437c6fac8a91ffb9dacfd6e81a1ac0.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> (cherry picked from commit 63d64228a7f31d534e3bcae87cbd37f4a0ae2dd6) Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 2cb096e373..d9d154e3ab 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -469,8 +469,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;
}