summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kristjansson <danielk@cuymedia.net>2011-06-27 21:22:29 (GMT)
committer Daniel Kristjansson <danielk@cuymedia.net>2011-06-27 21:22:34 (GMT)
commit8a469fc0bc284b137c244fe0c32efb8a6c6078cc (patch)
tree0bcc17c8d7511e8a7e466dc0ce7c3e2f76ffd2ff
parent7a1fce0c807badd90d8c8471c38fbd1b307ba325 (diff)
Fixes #9716. for \(int i... shadowed the int i we had declared earlier for that loop so we could check whether the for loop exited prematurely.
-rw-r--r--mythtv/libs/libmythtv/cc708decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmythtv/cc708decoder.cpp b/mythtv/libs/libmythtv/cc708decoder.cpp
index b16952c..dae626c 100644
--- a/mythtv/libs/libmythtv/cc708decoder.cpp
+++ b/mythtv/libs/libmythtv/cc708decoder.cpp
@@ -194,7 +194,7 @@ static void parse_cc_service_stream(CC708Reader* cc, uint service_num)
cc->delayed, blk_start, blk_size);
*/
- for (int i = (cc->delayed[service_num]) ? blk_size : blk_start;
+ for (i = (cc->delayed[service_num]) ? blk_size : blk_start;
i < blk_size; )
{
const int old_i = i;