提交 3869f6db 编写于 作者: J Jim 提交者: GitHub

Merge pull request #709 from kkartaltepe/libff-allow-options

libff: Allow custom demuxer options
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册