aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-07-01 21:24:17 +0200
committerReinhard Tartler <siretart@tauware.de>2011-07-03 19:49:49 +0200
commit9da3063e1cadf0bb4b910e4d9bcd9f859f2bbec6 (patch)
tree1614b9452621cce6c8c60dc52b170cb1783c8309
parentcb66b552700c4fe54f3387eb12207049ff63dfe3 (diff)
downloadffmpeg-9da3063e1cadf0bb4b910e4d9bcd9f859f2bbec6.tar.gz
lavf: use the correct pointer in av_open_input_stream().
(cherry picked from commit 5001d6ef4a2b70fe903b1d2e3e64c6ad7cc1cfa6) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r--libavformat/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 7370c60bdf..29390b818d 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -461,8 +461,9 @@ int av_open_input_stream(AVFormatContext **ic_ptr,
}
ic->pb = pb;
- err = avformat_open_input(ic_ptr, filename, fmt, &opts);
+ err = avformat_open_input(&ic, filename, fmt, &opts);
+ *ic_ptr = ic;
fail:
av_dict_free(&opts);
return err;