diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 0f66251354..63bf7e96a5 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -1895,7 +1895,7 @@ static int reopen_demux_for_component(AVFormatContext *s, struct representation pls->ctx->io_open = nested_io_open; if (c->cenc_decryption_key) - av_dict_set(&in_fmt_opts, "decryption_key", c->cenc_decryption_key, AV_OPT_FLAG_DECODING_PARAM); + av_dict_set(&in_fmt_opts, "decryption_key", c->cenc_decryption_key, 0); // provide additional information from mpd if available ret = avformat_open_input(&pls->ctx, "", in_fmt, &in_fmt_opts); //pls->init_section->url diff --git a/libavformat/hls.c b/libavformat/hls.c index 38eb346405..8204f55df3 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2065,7 +2065,7 @@ static int hls_read_header(AVFormatContext *s) if (strstr(in_fmt->name, "mov")) { char key[33]; ff_data_to_hex(key, pls->key, sizeof(pls->key), 0); - av_dict_set(&options, "decryption_key", key, AV_OPT_FLAG_DECODING_PARAM); + av_dict_set(&options, "decryption_key", key, 0); } else if (!c->crypto_ctx.aes_ctx) { c->crypto_ctx.aes_ctx = av_aes_alloc(); if (!c->crypto_ctx.aes_ctx) {