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_read.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_read.c')
-rw-r--r-- | dvdread/ifo_read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dvdread/ifo_read.c b/dvdread/ifo_read.c index 73b049ac6c..5889af6d24 100644 --- a/dvdread/ifo_read.c +++ b/dvdread/ifo_read.c @@ -763,10 +763,10 @@ static int ifoRead_PGC(ifo_handle_t *ifofile, pgc_t *pgc, unsigned int offset) { /* verify time (look at print_time) */ for(i = 0; i < 8; i++) - if(!pgc->audio_control[i].present) + if(!pgc->audio_control[i] & 0x8000) CHECK_ZERO(pgc->audio_control[i]); for(i = 0; i < 32; i++) - if(!pgc->subp_control[i].present) + if(!pgc->subp_control[i] & 0x80000000) CHECK_ZERO(pgc->subp_control[i]); /* Check that time is 0:0:0:0 also if nr_of_programs == 0 */ |