fftools/ffmpeg_mux_init: move validating codec avoptions to a separate function

This commit is contained in:
Anton Khirnov
2022-11-14 11:18:26 +01:00
parent 0fb7d111e8
commit 52380a055b
3 changed files with 51 additions and 44 deletions

View File

@@ -165,7 +165,7 @@ static int show_hwaccels(void *optctx, const char *opt, const char *arg)
}
/* return a copy of the input with the stream specifiers removed from the keys */
AVDictionary *strip_specifiers(AVDictionary *dict)
AVDictionary *strip_specifiers(const AVDictionary *dict)
{
const AVDictionaryEntry *e = NULL;
AVDictionary *ret = NULL;