Commit 066111bf authored by Michael Niedermayer's avatar Michael Niedermayer

matroskaenc: simplify mkv_check_tag()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 088ed531
......@@ -872,13 +872,12 @@ static int mkv_write_tag(AVFormatContext *s, AVDictionary *m, unsigned int eleme
static int mkv_check_tag(AVDictionary *m)
{
AVDictionaryEntry *t = NULL;
int ret = 0;
while ((t = av_dict_get(m, "", t, AV_DICT_IGNORE_SUFFIX)))
if (av_strcasecmp(t->key, "title") && av_strcasecmp(t->key, "stereo_mode"))
ret++;
return 1;
return ret;
return 0;
}
static int mkv_write_tags(AVFormatContext *s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment