diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-17 13:30:36 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2013-08-25 18:21:45 -0300 |
commit | 979f97a86127371fef7cda7521e01a8b20243c21 (patch) | |
tree | 3abd3deb9fb1b2f0c32f7fd144ee4ca47acce214 | |
parent | 1b16302e5464267f30ad59e9bc06fe567fd0d755 (diff) | |
download | ffmpeg-979f97a86127371fef7cda7521e01a8b20243c21.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 a1913a47ac..05d0c362fd 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -800,13 +800,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) |