Opened 13 years ago

Last modified 7 years ago

#273 new defect

unrarlib fails on AMD64 so reading rar vobsub files fails

Reported by: ndb@… Owned by: reimar
Priority: normal Component: core
Version: unspecified Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Seems like crc check via unrarlib fails on amd64 so no subtitles showing in
mplayer. doing without the crc check makes mplayer show compressed rar vobsub files.

ndb@newcastle foo_video $ head /tmp/debug_unrar.txt
Debug log of UniquE's RARFileLib
~~
(executable compiled on Apr 5 2005 at 23:08:36)

0 ms (line 416 in unrarlib.c):

  • Extracting > foo_video.ifo< from >foo_video.rar< (password is ><)...

3 ms (line 1032 in unrarlib.c):

  • CRC32 error - file couldn't be decompressed correctly!

So i made this change
unrarlib.h
/*#define _DO_CRC32_CHECK*/

ndb@newcastle foo_video $ head /tmp/debug_unrar.txt
Debug log of UniquE's RARFileLib
~~
(executable compiled on Apr 5 2005 at 23:10:07)

0 ms (line 416 in unrarlib.c):

  • Extracting >foo_video.ifo< from >foo_video.rar< (password is ><)...

4 ms (line 460 in unrarlib.c):

  • Extracted 86016 Bytes.


A quick look at unrarlib.c shows 32 bit masks.

PswCRC=CalcCRC32(0xFFFFFFFFL,(UBYTE*)Password,strlen(Password));

I don't know how that works on a 64 bit system, does it pad it with zeros or
ones and how the actually CalcCRC32 works.

Change History (2)

comment:1 Changed 13 years ago by r_togni@…

Can you check if this pathc
http://www.mplayerhq.hu/pipermail/mplayer-dev-eng/2005-April/034108.html solves
your problem?

comment:2 Changed 7 years ago by compn

  • Owner changed from alex@… to reimar
Note: See TracTickets for help on using tickets.