]> git.sesse.net Git - ffmpeg/blobdiff - ffmpeg.c
Merge commit '8c6f430291374cf6d2cfb85cdbb809803b5a7d83'
[ffmpeg] / ffmpeg.c
index 1c1a5599d0a7e8a4a257f6e23b9f55476fd3a460..8dd9c08452f765542efd6ce9c3c4a3f3481c3c69 100644 (file)
--- 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;