diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c index 6d77cb7640..463a3b4991 100644 --- a/libmpdemux/demux_lavf.c +++ b/libmpdemux/demux_lavf.c @@ -464,7 +464,7 @@ static demuxer_t* demux_open_lavf(demuxer_t *demuxer){ if (!strncmp(demuxer->stream->url, "ffmpeg://rtsp:", 14)) strncpy(mp_filename, demuxer->stream->url + 9, sizeof(mp_filename)-3); else - strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3); + strncpy(mp_filename + 3, demuxer->stream->url, sizeof(mp_filename)-3); } else strncpy(mp_filename + 3, "foobar.dummy", sizeof(mp_filename)-3); diff --git a/stream/stream_ffmpeg.c b/stream/stream_ffmpeg.c index 1d959b2907..30d63001d0 100644 --- a/stream/stream_ffmpeg.c +++ b/stream/stream_ffmpeg.c @@ -113,10 +113,10 @@ static int open_f(stream_t *stream, int mode, void *opts, int *file_format) stream->seek = NULL; } if (!dummy) { - stream->fill_buffer = fill_buffer; - stream->write_buffer = write_buffer; - stream->control = control; - stream->close = close_f; + stream->fill_buffer = fill_buffer; + stream->write_buffer = write_buffer; + stream->control = control; + stream->close = close_f; } res = STREAM_OK;