diff mbox

[FFmpeg-devel] libavcodec/bsfs: Fix bsf option setting

Message ID 1472165232-15259-1-git-send-email-sebechlebskyjan@gmail.com
State Accepted
Commit bcd115316234e29ae1df93bce517a608f44ec8ff
Headers show

Commit Message

sebechlebskyjan@gmail.com Aug. 25, 2016, 10:47 p.m. UTC
From: Jan Sebechlebsky <sebechlebskyjan@gmail.com>

AV_OPT_SEARCH_CHILDREN flag must be passed to av_opt_set_dict()
to set options for private context.

Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
---
 libavcodec/bsf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Aug. 26, 2016, 12:14 a.m. UTC | #1
On Fri, Aug 26, 2016 at 12:47:12AM +0200, sebechlebskyjan@gmail.com wrote:
> From: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
> 
> AV_OPT_SEARCH_CHILDREN flag must be passed to av_opt_set_dict()
> to set options for private context.
> 
> Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
> ---
>  libavcodec/bsf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied

thx

[...]
diff mbox

Patch

diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c
index 2462e62..dfb127e 100644
--- a/libavcodec/bsf.c
+++ b/libavcodec/bsf.c
@@ -432,7 +432,7 @@  int av_bsf_list_append2(AVBSFList *lst, const char *bsf_name, AVDictionary ** op
         return ret;
 
     if (options) {
-        ret = av_opt_set_dict(bsf, options);
+        ret = av_opt_set_dict2(bsf, options, AV_OPT_SEARCH_CHILDREN);
         if (ret < 0)
             goto end;
     }