Move temp variable declaration into inner loop scope.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25332 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-12-10 04:37:26 +00:00
parent 5319009dfe
commit ef37a3be9c
1 changed files with 3 additions and 2 deletions

View File

@ -306,13 +306,14 @@ vobsub_parse_size (sh_sub_t *sh, const char *start)
static int
vobsub_parse_palette (sh_sub_t *sh, const char *start)
{
int i, tmp;
int i;
start += 8;
while (isspace(*start))
start++;
for (i = 0; i < 16; i++)
{
unsigned int tmp;
if (sscanf(start, "%06x", &tmp) != 1)
break;
sh->palette[i] = vobsub_palette_to_yuv(tmp);
@ -356,12 +357,12 @@ vobsub_parse_custom_colors (sh_sub_t *sh, const char *start)
use_custom_colors ? "ON" : "OFF");
if ((start = strstr(start, "colors:")) != NULL)
{
unsigned int tmp;
start += 7;
while (isspace(*start))
start++;
for (i = 0; i < 4; i++)
{
unsigned int tmp;
if (sscanf(start, "%06x", &tmp) != 1)
break;
sh->colors[i] = vobsub_rgb_to_yuv(tmp);