Silence two compiler warnings

Both should be harmless.
This commit is contained in:
wm4 2013-01-15 22:15:55 +01:00
parent efcd479e7e
commit 07d14bd323
2 changed files with 2 additions and 4 deletions

View File

@ -857,7 +857,6 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file)
cd_info_t *cd_info = NULL;
int length, pos = 0;
char *ptr, *ptr2;
unsigned int audiolen;
if (xmcd_file == NULL)
return NULL;
@ -887,7 +886,7 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file)
;
// Search for a track title
else if (xmcd_parse_ttitle(cd_info, ptr))
audiolen++; // <-- audiolen++ to shut up gcc warning
;
}
if (ptr2[1] == '\n')
ptr2++;
@ -895,7 +894,7 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file)
ptr = ptr2 + 1;
}
audiolen = cdtoc[cd_info->nb_tracks].frame-cdtoc[0].frame;
unsigned int audiolen = cdtoc[cd_info->nb_tracks].frame-cdtoc[0].frame;
cd_info->min = (unsigned int) (audiolen / (60 * 75));
cd_info->sec = (unsigned int) ((audiolen / 75) % 60);
cd_info->msec = (unsigned int) (audiolen % 75);

View File

@ -394,7 +394,6 @@ static void uninit_avctx(sh_video_t *sh)
static void uninit(sh_video_t *sh)
{
vd_ffmpeg_ctx *ctx = sh->context;
AVCodecContext *avctx = ctx->avctx;
uninit_avctx(sh);
talloc_free(ctx);