diff options
-rw-r--r-- | av_log.c | 1 | ||||
-rw-r--r-- | stream/stream_ffmpeg.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -112,6 +112,7 @@ void init_libav(void) av_log_set_callback(mp_msg_av_log_callback); avcodec_register_all(); av_register_all(); + avformat_network_init(); } #define V(x) (x)>>16, (x)>>8 & 255, (x) & 255 diff --git a/stream/stream_ffmpeg.c b/stream/stream_ffmpeg.c index a76b9e5f3b..af71675713 100644 --- a/stream/stream_ffmpeg.c +++ b/stream/stream_ffmpeg.c @@ -56,7 +56,7 @@ static int seek(stream_t *s, off_t newpos) static int control(stream_t *s, int cmd, void *arg) { - AVIOContext *avio = avio; + AVIOContext *avio = s->priv; int64_t size, ts; double pts; switch(cmd) { |