diff options
author | wm4 <wm4@nowhere> | 2013-06-05 02:02:56 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-09 22:06:02 +0200 |
commit | 780d62f19eedc32814c17de6943196d1aab0f26e (patch) | |
tree | e744ac57654d52df3ef5754aa6ea5cd08e6d8fad /stream/stream_dvd.c | |
parent | 15f5b18e58199de0136a6bacbde1646ea8e3354d (diff) | |
download | mpv-780d62f19eedc32814c17de6943196d1aab0f26e.tar.bz2 mpv-780d62f19eedc32814c17de6943196d1aab0f26e.tar.xz |
stream_dvd: remove some deadly insane code
Of course all of stream_dvd.c (as well as libdvdread) is completely
insane, but at least this hack for ancient broken compilers on really
obscure platforms should be safe to remove.
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r-- | stream/stream_dvd.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index 1a641de5cd..23d933e344 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -275,23 +275,8 @@ read_next: if(d->angle_seek) { int i,skip=0; -#if defined(__GNUC__) && ( defined(__sparc__) || defined(hpux) ) - // workaround for a bug in the sparc/hpux version of gcc 2.95.X ... 3.2, - // it generates incorrect code for unaligned access to a packed - // structure member, resulting in an mplayer crash with a SIGBUS - // signal. - // - // See also gcc problem report PR c/7847: - // http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc&cmd=view+audit-trail&pr=7847 - for(i=0;i<9;i++) { // check if all values zero: - __typeof__(d->dsi_pack.sml_agli.data[i].address) tmp_addr; - memcpy(&tmp_addr,&d->dsi_pack.sml_agli.data[i].address,sizeof(tmp_addr)); - if((skip=tmp_addr)!=0) break; - } -#else for(i=0;i<9;i++) // check if all values zero: if((skip=d->dsi_pack.sml_agli.data[i].address)!=0) break; -#endif if(skip && skip!=0x7fffffff) { // sml_agli table has valid data (at least one non-zero): d->cur_pack=d->dsi_pack.dsi_gi.nv_pck_lbn+ |