return NULL;
}
-static int fifo_mux_init(AVFormatContext *avf, AVOutputFormat *oformat)
+static int fifo_mux_init(AVFormatContext *avf, AVOutputFormat *oformat,
+ const char *filename)
{
FifoContext *fifo = avf->priv_data;
AVFormatContext *avf2;
int ret = 0, i;
- ret = avformat_alloc_output_context2(&avf2, oformat, NULL, NULL);
+ ret = avformat_alloc_output_context2(&avf2, oformat, NULL, filename);
if (ret < 0)
return ret;
return ret;
}
- ret = fifo_mux_init(avf, oformat);
+ ret = fifo_mux_init(avf, oformat, avf->filename);
if (ret < 0)
return ret;