diff options
-rw-r--r-- | stream/stream_cddb.c | 5 | ||||
-rw-r--r-- | video/decode/vd_lavc.c | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/stream/stream_cddb.c b/stream/stream_cddb.c index f0f8f67155..d2ed37deb6 100644 --- a/stream/stream_cddb.c +++ b/stream/stream_cddb.c @@ -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); diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 0269fb456a..9dbb07ee16 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -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); |