[FFmpeg-devel] [PATCH] libavformat/fifo: Fix initialization of underlying AVFormatContext
sebechlebskyjan at gmail.com
sebechlebskyjan at gmail.com
Thu Jul 6 14:05:14 EEST 2017
From: Jan Sebechlebsky <sebechlebskyjan at gmail.com>
Pass filename to AVFormatContext of underlying muxer.
This commit fixes bug #6308.
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan at gmail.com>
---
libavformat/fifo.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libavformat/fifo.c b/libavformat/fifo.c
index 2cbe5c5..c881f31 100644
--- a/libavformat/fifo.c
+++ b/libavformat/fifo.c
@@ -442,13 +442,14 @@ static void *fifo_consumer_thread(void *data)
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;
@@ -505,7 +506,7 @@ static int fifo_init(AVFormatContext *avf)
return ret;
}
- ret = fifo_mux_init(avf, oformat);
+ ret = fifo_mux_init(avf, oformat, avf->filename);
if (ret < 0)
return ret;
--
1.9.1
More information about the ffmpeg-devel
mailing list