From aff26d98400326223e0def44f24073d52fb08578 Mon Sep 17 00:00:00 2001 From: Kurt Kartaltepe Date: Mon, 28 Nov 2016 19:15:30 -0600 Subject: [PATCH] libff: Allow custom demuxer options --- deps/libff/libff/ff-demuxer.c | 2 +- deps/libff/libff/ff-demuxer.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deps/libff/libff/ff-demuxer.c b/deps/libff/libff/ff-demuxer.c index 2feef7af5..6d77d3525 100644 --- a/deps/libff/libff/ff-demuxer.c +++ b/deps/libff/libff/ff-demuxer.c @@ -377,7 +377,7 @@ static bool open_input(struct ff_demuxer *demuxer, } if (avformat_open_input(format_context, demuxer->input, - input_format, NULL) != 0) + input_format, &demuxer->options.custom_options) != 0) return false; return avformat_find_stream_info(*format_context, NULL) >= 0; diff --git a/deps/libff/libff/ff-demuxer.h b/deps/libff/libff/ff-demuxer.h index 48192f9b9..55562e431 100644 --- a/deps/libff/libff/ff-demuxer.h +++ b/deps/libff/libff/ff-demuxer.h @@ -40,6 +40,7 @@ struct ff_demuxer_options bool is_hw_decoding; bool is_looping; enum AVDiscard frame_drop; + AVDictionary *custom_options; }; typedef struct ff_demuxer_options ff_demuxer_options_t;