lavf: use the correct pointer in av_open_input_stream().
authorAnton Khirnov <anton@khirnov.net>
Fri, 1 Jul 2011 19:24:17 +0000 (21:24 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 2 Jul 2011 06:41:57 +0000 (08:41 +0200)
libavformat/utils.c

index 776697b..92debd5 100644 (file)
@@ -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;