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.