aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-17 13:30:36 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-17 13:30:36 +0200
commit066111bf19518a9f4d836991b34dbfc5ab72a41a (patch)
tree0bf44b88d5042b68d297aaf3a91a1e8b73a7a952
parent088ed5314694031e07e02e9d364c9d486a60e704 (diff)
downloadffmpeg-066111bf19518a9f4d836991b34dbfc5ab72a41a.tar.gz
matroskaenc: simplify mkv_check_tag()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/matroskaenc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 2c414e8c2f..9b825f78ed 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -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)