Bug 75403 - libtheora doesn't work with -O3 in mplayer and xine
Bug#: 75403 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: media-video@gentoo.org Reported By: caneko@gmail.com
Component: Ebuilds
URL: 
Summary: libtheora doesn't work with -O3 in mplayer and xine
Keywords:  
Status Whiteboard: 
Opened: 2004-12-22 21:44 0000
Description:   Opened: 2004-12-22 21:44 0000
Using optimization -O3 makes libtheora to doesn't work with neither MPlayer nor
Xine, complaining about the theora header.

Reproducible: Always
Steps to Reproduce:
1. CFLAGS="-O3" emerge media-libs/libtheora
2. mplayer somevideo.ogg (with theora video codec)
3. xine somevideo.ogg

Actual Results:  
The sound is played fine, but no video is displayed. MPlayer gives the
following
(sniped to interesting part):

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Could not open codec.
VDecoder init failed :(
Opening video decoder: [theora] Theora/VP3
Broken Theora header; errorCode=-20!
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0xFFFC.
Read DOCS/HTML/en/codecs.html!

Xine fails with:

libtheora: cannot decode stream without header


Expected Results:  
Both players should play both files without problems.

Changing the -O3 flag with -O2 solves the problem in both players.

------- Comment #1 From Chris White (RETIRED) 2005-02-06 09:01:20 0000 -------
Fixed in cvs, thanks for reporting:)