diff options
author | Rodger Combs <rodger.combs@gmail.com> | 2015-10-07 21:24:40 -0500 |
---|---|---|
committer | Rodger Combs <rodger.combs@gmail.com> | 2015-12-28 08:34:30 -0600 |
commit | a5fd3a1a2bd2e8ac28434919e462cf61ce831eb2 (patch) | |
tree | 2afc15bf8cf90ea7705965f72f8ba6d48c388704 /ffmpeg_opt.c | |
parent | 4caa3e1c6cf452154e811fea3685b2dea50d3a7a (diff) | |
download | ffmpeg-a5fd3a1a2bd2e8ac28434919e462cf61ce831eb2.tar.gz |
ffmpeg: use lavf API for applying bitstream filters
Diffstat (limited to 'ffmpeg_opt.c')
-rw-r--r-- | ffmpeg_opt.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index 3df46da15e..9b341cfa98 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -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; |