summaryrefslogtreecommitdiff
path: root/libavcodec/microdvddec.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-06-15 18:41:14 +0200
committerClément Bœsch <ubitux@gmail.com>2012-06-15 18:41:14 +0200
commit47395a4f529aa78791da979e3dc13db82beb2cec (patch)
tree7f49839054c697f9739c3435dfec20c0cf703ebc /libavcodec/microdvddec.c
parent608bda925a933be6ffdb91937125b6bba0c8a3d7 (diff)
downloadffmpeg-47395a4f529aa78791da979e3dc13db82beb2cec.tar.gz
lavc/microdvddec: properly reset non persistent color tag.
Diffstat (limited to 'libavcodec/microdvddec.c')
-rw-r--r--libavcodec/microdvddec.c2
1 files changed, 1 insertions, 1 deletions
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) {