diff mbox

[FFmpeg-devel] libavformat/tee: tee was passing a wrong option name for fifo's format_options

Message ID 1485194131-32227-1-git-send-email-felipel@astroza.cl
State Accepted
Commit b7665642f18a953ad4aecccb9af239070bf448f3
Headers show

Commit Message

Felipe Astroza Araya Jan. 23, 2017, 5:55 p.m. UTC
From: Felipe Astroza <felipe@astroza.cl>

If fifo is enabled on tee muxer, ffmpeg exits because of an unknown option passed to fifo muxer.
Option name "format_options" was replaced by "format_opts" on tee muxer.

Signed-off-by: Felipe Astroza <felipe@astroza.cl>
---
 libavformat/tee.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Jan. 24, 2017, 2:13 a.m. UTC | #1
On Mon, Jan 23, 2017 at 02:55:31PM -0300, Felipe Astroza Araya wrote:
> From: Felipe Astroza <felipe@astroza.cl>
> 
> If fifo is enabled on tee muxer, ffmpeg exits because of an unknown option passed to fifo muxer.
> Option name "format_options" was replaced by "format_opts" on tee muxer.
> 
> Signed-off-by: Felipe Astroza <felipe@astroza.cl>
> ---
>  libavformat/tee.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied

thx

[...]
diff mbox

Patch

diff --git a/libavformat/tee.c b/libavformat/tee.c
index 99259a7..dd1844a 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -208,7 +208,7 @@  static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
             if (ret < 0)
                 goto end;
 
-            ret = av_dict_set(&tee_slave->fifo_options, "format_options", format_options_str,
+            ret = av_dict_set(&tee_slave->fifo_options, "format_opts", format_options_str,
                               AV_DICT_DONT_STRDUP_VAL);
             if (ret < 0)
                 goto end;