summaryrefslogtreecommitdiffstats
path: root/libhb/dvd.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-06-19 14:13:14 -0700
committerJohn Stebbins <[email protected]>2019-06-28 12:06:03 -0700
commit3e2f9fb57f48c591c2c1969a15cc9826241cfc55 (patch)
tree06d4303dedf9a07faebf1bb8c2d6da41ec2693fd /libhb/dvd.c
parentedeffe2f8f5f6c5e3a8ff3dfaf31659318ca472e (diff)
Fix gcc 9 compiler warnings
gcc 9 is quite a lot chattier and clutters the build log with useless information :\
Diffstat (limited to 'libhb/dvd.c')
-rw-r--r--libhb/dvd.c18
1 files changed, 9 insertions, 9 deletions
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);
}
}