Mercurial > mplayer.hg
diff dvdread/ifo_print.c @ 25122:870e5564d0f7
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
author | nicodvb |
---|---|
date | Fri, 23 Nov 2007 21:09:06 +0000 |
parents | 1542693b2a30 |
children |
line wrap: on
line diff
--- a/dvdread/ifo_print.c Fri Nov 23 13:46:38 2007 +0000 +++ b/dvdread/ifo_print.c Fri Nov 23 21:09:06 2007 +0000 @@ -797,14 +797,14 @@ 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]); }