diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-23 21:09:06 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-23 21:09:06 +0000 |
commit | a8449bf46212a98ab460b8610c665ef55778e58e (patch) | |
tree | 20a11b157488e708d2b81b495cd0daffc73575c7 /dvdread/ifo_print.c | |
parent | 9ba75c2ccf153fc626c40de158829ef4d3cfd373 (diff) | |
download | mpv-a8449bf46212a98ab460b8610c665ef55778e58e.tar.bz2 mpv-a8449bf46212a98ab460b8610c665ef55778e58e.tar.xz |
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
Diffstat (limited to 'dvdread/ifo_print.c')
-rw-r--r-- | dvdread/ifo_print.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]); } |