diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-17 13:30:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-26 04:51:06 +0200 |
commit | 90ed77019285938176ace29ab3ad90261048f7df (patch) | |
tree | d5bcf4b2e807235eb29a722fbf8306a41fe2dbca | |
parent | f9fa32173478144f745d22b81fbed35b840f09a1 (diff) | |
download | ffmpeg-90ed77019285938176ace29ab3ad90261048f7df.tar.gz |
matroskaenc: simplify mkv_check_tag()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 066111bf19518a9f4d836991b34dbfc5ab72a41a)
-rw-r--r-- | libavformat/matroskaenc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 56519f5505..d5e91bb6d5 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -819,13 +819,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) |