libff: Allow custom demuxer options
This commit is contained in:
parent
532c613fba
commit
aff26d9840
2
deps/libff/libff/ff-demuxer.c
vendored
2
deps/libff/libff/ff-demuxer.c
vendored
@ -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;
|
||||
|
1
deps/libff/libff/ff-demuxer.h
vendored
1
deps/libff/libff/ff-demuxer.h
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user