<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>75403</bug_id>
          
          <creation_ts>2004-12-22 21:44 0000</creation_ts>
          <short_desc>libtheora doesn&apos;t work with -O3 in mplayer and xine</short_desc>
          <delta_ts>2005-02-06 09:01:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>caneko@gmail.com</reporter>
          <assigned_to>media-video@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>caneko@gmail.com</who>
            <bug_when>2004-12-22 21:44:23 0000</bug_when>
            <thetext>Using optimization -O3 makes libtheora to doesn&apos;t work with neither MPlayer nor Xine, complaining about the theora header.

Reproducible: Always
Steps to Reproduce:
1. CFLAGS=&quot;-O3&quot; 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&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chriswhite@gentoo.org</who>
            <bug_when>2005-02-06 09:01:20 0000</bug_when>
            <thetext>Fixed in cvs, thanks for reporting:)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>