mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
Silence two compiler warnings
Both should be harmless.
This commit is contained in:
parent
efcd479e7e
commit
07d14bd323
@ -857,7 +857,6 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file)
|
|||||||
cd_info_t *cd_info = NULL;
|
cd_info_t *cd_info = NULL;
|
||||||
int length, pos = 0;
|
int length, pos = 0;
|
||||||
char *ptr, *ptr2;
|
char *ptr, *ptr2;
|
||||||
unsigned int audiolen;
|
|
||||||
if (xmcd_file == NULL)
|
if (xmcd_file == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@ -887,7 +886,7 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file)
|
|||||||
;
|
;
|
||||||
// Search for a track title
|
// Search for a track title
|
||||||
else if (xmcd_parse_ttitle(cd_info, ptr))
|
else if (xmcd_parse_ttitle(cd_info, ptr))
|
||||||
audiolen++; // <-- audiolen++ to shut up gcc warning
|
;
|
||||||
}
|
}
|
||||||
if (ptr2[1] == '\n')
|
if (ptr2[1] == '\n')
|
||||||
ptr2++;
|
ptr2++;
|
||||||
@ -895,7 +894,7 @@ cd_info_t *cddb_parse_xmcd(char *xmcd_file)
|
|||||||
ptr = ptr2 + 1;
|
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->min = (unsigned int) (audiolen / (60 * 75));
|
||||||
cd_info->sec = (unsigned int) ((audiolen / 75) % 60);
|
cd_info->sec = (unsigned int) ((audiolen / 75) % 60);
|
||||||
cd_info->msec = (unsigned int) (audiolen % 75);
|
cd_info->msec = (unsigned int) (audiolen % 75);
|
||||||
|
@ -394,7 +394,6 @@ static void uninit_avctx(sh_video_t *sh)
|
|||||||
static void uninit(sh_video_t *sh)
|
static void uninit(sh_video_t *sh)
|
||||||
{
|
{
|
||||||
vd_ffmpeg_ctx *ctx = sh->context;
|
vd_ffmpeg_ctx *ctx = sh->context;
|
||||||
AVCodecContext *avctx = ctx->avctx;
|
|
||||||
|
|
||||||
uninit_avctx(sh);
|
uninit_avctx(sh);
|
||||||
talloc_free(ctx);
|
talloc_free(ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user