]> git.sesse.net Git - ffmpeg/blobdiff - ffmpeg_opt.c
Merge commit '72d658766e6ccf198317dffd6499c5e288847a1c'
[ffmpeg] / ffmpeg_opt.c
index 3df46da15ee7e77d08d1a9c6dd8e25b0c0a66a31..9b341cfa98a2172b15dcff3c07364e63648c6474 100644 (file)
@@ -1255,7 +1255,11 @@ static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, e
             bsfc_prev->next = bsfc;
         else
             ost->bitstream_filters = bsfc;
-        av_dict_set(&ost->bsf_args, bsfc->filter->name, arg, 0);
+        if (arg)
+            if (!(bsfc->args = av_strdup(arg))) {
+                av_log(NULL, AV_LOG_FATAL, "Bitstream filter memory allocation failed\n");
+                exit_program(1);
+            }
 
         bsfc_prev = bsfc;
         bsf       = next;