matroskaenc: simplify mkv_check_tag()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 066111bf19
)
This commit is contained in:

committed by
James Almer

parent
baf92305a6
commit
f593ac1c21
@@ -875,13 +875,12 @@ static int mkv_write_tag(AVFormatContext *s, AVDictionary *m, unsigned int eleme
|
|||||||
static int mkv_check_tag(AVDictionary *m)
|
static int mkv_check_tag(AVDictionary *m)
|
||||||
{
|
{
|
||||||
AVDictionaryEntry *t = NULL;
|
AVDictionaryEntry *t = NULL;
|
||||||
int ret = 0;
|
|
||||||
|
|
||||||
while ((t = av_dict_get(m, "", t, AV_DICT_IGNORE_SUFFIX)))
|
while ((t = av_dict_get(m, "", t, AV_DICT_IGNORE_SUFFIX)))
|
||||||
if (av_strcasecmp(t->key, "title") && av_strcasecmp(t->key, "stereo_mode"))
|
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)
|
static int mkv_write_tags(AVFormatContext *s)
|
||||||
|
Reference in New Issue
Block a user