From 47395a4f529aa78791da979e3dc13db82beb2cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Fri, 15 Jun 2012 18:41:14 +0200 Subject: [PATCH] lavc/microdvddec: properly reset non persistent color tag. --- libavcodec/microdvddec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/microdvddec.c b/libavcodec/microdvddec.c index 33a75c4f9e..a5623624e1 100644 --- a/libavcodec/microdvddec.c +++ b/libavcodec/microdvddec.c @@ -226,7 +226,7 @@ static void microdvd_close_no_persistent_tags(AVBPrint *new_line, { int i, sidx; - for (i = sizeof(MICRODVD_TAGS) - 2; i; i--) { + for (i = sizeof(MICRODVD_TAGS) - 2; i >= 0; i--) { if (tags[i].persistent != MICRODVD_PERSISTENT_OFF) continue; switch (tags[i].key) {