From 3e2f9fb57f48c591c2c1969a15cc9826241cfc55 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 19 Jun 2019 14:13:14 -0700 Subject: Fix gcc 9 compiler warnings gcc 9 is quite a lot chattier and clutters the build log with useless information :\ --- libhb/dvd.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libhb/dvd.c') diff --git a/libhb/dvd.c b/libhb/dvd.c index 5708934bf..12611d397 100644 --- a/libhb/dvd.c +++ b/libhb/dvd.c @@ -175,7 +175,7 @@ static int hb_dvdread_title_count( hb_dvd_t * e ) static void add_subtitle( hb_list_t * list_subtitle, int position, iso639_lang_t * lang, int lang_extension, - uint32_t * palette, int style ) + uint8_t * palette, int style ) { hb_subtitle_t * subtitle; int ii, count; @@ -616,8 +616,8 @@ static hb_title_t * hb_dvdread_title_scan( hb_dvd_t * e, int t, uint64_t min_dur // Add Wide Screen subtitle. pos = (spu_control >> 16) & 0x1F; add_subtitle(title->list_subtitle, pos, lang, lang_ext, - vts->vts_pgcit->pgci_srp[pgc_id-1].pgc->palette, - HB_VOBSUB_STYLE_WIDE); + (uint8_t*)vts->vts_pgcit->pgci_srp[pgc_id-1].pgc->palette, + HB_VOBSUB_STYLE_WIDE); // permitted_df // 1 - Letterbox not permitted @@ -628,24 +628,24 @@ static hb_title_t * hb_dvdread_title_scan( hb_dvd_t * e, int t, uint64_t min_dur // Letterbox permitted. Add Letterbox subtitle. pos = (spu_control >> 8) & 0x1F; add_subtitle(title->list_subtitle, pos, lang, lang_ext, - vts->vts_pgcit->pgci_srp[pgc_id-1].pgc->palette, - HB_VOBSUB_STYLE_LETTERBOX); + (uint8_t*)vts->vts_pgcit->pgci_srp[pgc_id-1].pgc->palette, + HB_VOBSUB_STYLE_LETTERBOX); } if (!(vts->vtsi_mat->vts_video_attr.permitted_df & 2)) { // Pan&Scan permitted. Add Pan&Scan subtitle. pos = spu_control & 0x1F; add_subtitle(title->list_subtitle, pos, lang, lang_ext, - vts->vts_pgcit->pgci_srp[pgc_id-1].pgc->palette, - HB_VOBSUB_STYLE_PANSCAN); + (uint8_t*)vts->vts_pgcit->pgci_srp[pgc_id-1].pgc->palette, + HB_VOBSUB_STYLE_PANSCAN); } } else { pos = (spu_control >> 24) & 0x1F; add_subtitle(title->list_subtitle, pos, lang, lang_ext, - vts->vts_pgcit->pgci_srp[pgc_id-1].pgc->palette, - HB_VOBSUB_STYLE_4_3); + (uint8_t*)vts->vts_pgcit->pgci_srp[pgc_id-1].pgc->palette, + HB_VOBSUB_STYLE_4_3); } } -- cgit v1.2.3