summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-08 15:03:52 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-11-18 06:01:59 +0100
commit419d93c379bb6834529ec7e65a18ce4982c864aa (patch)
tree0cf0d41f36f3dc03d0b82d7a80283350a64caebd /libavformat/utils.c
parent5f4b0ace4be25e4d85b081c8d80b8748945a44c1 (diff)
downloadffmpeg-419d93c379bb6834529ec7e65a18ce4982c864aa.tar.gz
avformat/utils: Remove unused shorthand feature for auto-inserted BSF
Besides being unused it should not be used at all: The order of options of bitstream filters is not guaranteed to be stable at all. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index a8611f5877..6eac3f721e 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1800,13 +1800,7 @@ int ff_stream_add_bitstream_filter(AVStream *st, const char *name, const char *a
}
if (args && bsfc->filter->priv_class) {
- const AVOption *opt = av_opt_next(bsfc->priv_data, NULL);
- const char * shorthand[2] = {NULL};
-
- if (opt)
- shorthand[0] = opt->name;
-
- if ((ret = av_opt_set_from_string(bsfc->priv_data, args, shorthand, "=", ":")) < 0) {
+ if ((ret = av_set_options_string(bsfc->priv_data, args, "=", ":")) < 0) {
av_bsf_free(&bsfc);
return ret;
}