X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg.c;h=8dd9c08452f765542efd6ce9c3c4a3f3481c3c69;hb=e18d9d90f1d30feed02a0d973ee1c0e46f6abfd7;hp=1c1a5599d0a7e8a4a257f6e23b9f55476fd3a460;hpb=b7f8d3de2c41de98185c304b4e5b35018a96e451;p=ffmpeg diff --git a/ffmpeg.c b/ffmpeg.c index 1c1a5599d0a..8dd9c08452f 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -532,6 +532,15 @@ static void ffmpeg_cleanup(int ret) term_exit(); } +void remove_avoptions(AVDictionary **a, AVDictionary *b) +{ + AVDictionaryEntry *t = NULL; + + while ((t = av_dict_get(b, "", t, AV_DICT_IGNORE_SUFFIX))) { + av_dict_set(a, t->key, NULL, AV_DICT_MATCH_CASE); + } +} + void assert_avoptions(AVDictionary *m) { AVDictionaryEntry *t;