From a8449bf46212a98ab460b8610c665ef55778e58e Mon Sep 17 00:00:00 2001 From: nicodvb Date: Fri, 23 Nov 2007 21:09:06 +0000 Subject: replaced audio_mapping_t and sub_mapping_t with uint16_t and uint32_t respectively: conditional bitfields don't have the slightest chance to be cross-platform, thus they are definitively broken. Fixed the other files to use bitmasks instead of accessing the previous bitfield members git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25150 b3059339-0415-0410-9bf9-f77b7e298cf2 --- dvdread/ifo_print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dvdread/ifo_print.c') diff --git a/dvdread/ifo_print.c b/dvdread/ifo_print.c index c34c24a90e..39ad59efcf 100644 --- a/dvdread/ifo_print.c +++ b/dvdread/ifo_print.c @@ -797,14 +797,14 @@ void ifoPrint_PGC(pgc_t *pgc) { ifoPrint_USER_OPS(&pgc->prohibited_ops); for(i = 0; i < 8; i++) { - if(pgc->audio_control[i].present) { /* The 'is present' bit */ + if(pgc->audio_control[i] & 0x8000) { /* The 'is present' bit */ printf("Audio stream %i control: %04x\n", i, pgc->audio_control[i]); } } for(i = 0; i < 32; i++) { - if(pgc->subp_control[i].present) { /* The 'is present' bit */ + if(pgc->subp_control[i] & 0x80000000) { /* The 'is present' bit */ printf("Subpicture stream %2i control: %08x\n", i, pgc->subp_control[i]); } -- cgit v1.2.3