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

libff: Allow custom demuxer options
master
Jim 2016-12-16 16:25:34 -08:00 committed by GitHub
commit 3869f6dbc2
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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;