Opened 17 years ago

Closed 17 years ago

#767 closed defect (fixed)

Real rtsp streaming fails on ARM cpu

Reported by: ian@… Owned by: r_togni@…
Priority: normal Component: streaming
Version: 1.0rc1 Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Streaming real audio from www.bbc.co.uk fails on ARM cpu, causing mplayer
to quit with a seg. fault.

The cause is non-32 bit aligned access to 32-bit integers in the
file "stream/realrtsp/real.c".
(It's not the non-aligned access that causes the segv. -- incorrect values are

returned which lead to a segv. some time later.)

I have verified that the following patch enables correct streaming of real
audio from the BBC on ARM (XScale-IXP42x).

--- MPlayer-1.0rc1/stream/realrtsp/real.c-original 2006-10-23 00:32:25.000000000 +0200
+++ MPlayer-1.0rc1/stream/realrtsp/real.c 2007-02-24 15:09:46.000000000 +0100
@@ -58,7 +58,8 @@

#define BE_16(x) be2me_16(*(uint16_t*)(x))

-#define BE_32(x) be2me_32(*(uint32_t*)(x))
+#define BE_32(x) (be2me_16(((uint16_t*)(x))[0])<<16 | \
+ be2me_16(((uint16_t*)(x))[1]))

Change History (3)

comment:1 by compn, 17 years ago

reimar just changed over to the libavutil AV_RB/AV_WB macros

can you verify if your bug still exists in svn ?

comment:2 by ian@…, 17 years ago

I've checked an svn compile on my ARM system

  • the bug is now resolved. Thanks!

comment:3 by r_togni@…, 17 years ago

Resolution: fixed
Status: newclosed

Fixed

Note: See TracTickets for help on using tickets.