[FFmpeg-cvslog] lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails

David Goldwich git at videolan.org
Mon Sep 19 22:54:14 CEST 2011


ffmpeg | branch: master | David Goldwich <david.goldwich at gmail.com> | Sat Sep 17 13:50:35 2011 +0200| [63d64228a7f31d534e3bcae87cbd37f4a0ae2dd6] | committer: Anton Khirnov

lavf: Fix context pointer in av_open_input_stream when avformat_open_input fails

Signed-off-by: David Goldwich <david.goldwich at gmail.com>
Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=63d64228a7f31d534e3bcae87cbd37f4a0ae2dd6
---

 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index ae71763..05d4fda 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;
 }



More information about the ffmpeg-cvslog mailing list