[Ffmpeg-devel] H264 decoding problem

Klaas-Pieter Vlieg vlieg
Fri Oct 13 10:18:10 CEST 2006


Hi, 
> From: Guillaume POIRIER [mailto:poirierg at gmail.com] 
> Sent: 13 October 2006 09:33
> 
> Hi,
> 
> On 10/12/06, Michael Niedermayer <michaelni at gmx.at> wrote:
> > Hi
> >
> > On Thu, Oct 12, 2006 at 10:44:04PM +0200, Guillaume POIRIER wrote:
> > > Hi,
> > >
> > > On 10/10/06, Klaas-Pieter Vlieg <vlieg at eurescom.de> wrote:
> > > >As of Ffmpeg R6602 decoding of the file h264-psp.avi on 
> X86 is broken.
> > > >The problem was introduced with Michael's handwritten version of 
> > > >cabac.h
> > > >(R6602)
> > > >
> > > >Sample h264-psp.avi in 
> > > >upload.mplayerhq.hu/MPlayer/incoming/h264-psp/
> > >
> > > Ok, I can confirm that the bug was introduced in R6602.
> > > The offensive patch is in attachment.
> > >
> > > I've uploaded the code generated by GCC4.2 (3.4.6 is supposed to 
> > > choke on the same bug too) with r6602.
> > > /home/guillaume/Prgm/gcc/bin/gcc -DHAVE_AV_CONFIG_H
> > > -I/home/guillaume/Prgm/ffmpeg-test-6602
> > > -I/home/guillaume/Prgm/ffmpeg-test-6602/libavutil 
> > > -fomit-frame-pointer
> > > -march=pentium4 -g -Wdeclaration-after-statement -Wall 
> -Wno-switch 
> > > -Wdisabled-optimization -Wpointer-arith -Wredundant-decls 
> -Winline -O3
> > > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
> -D_ISOC9X_SOURCE    -S -o
> > > h264.s h264.c
> > >
> > > You can can everything here: 
> > > http://poirierg.googlepages.com/ffmpegtarball
> > >
> > > Hopefully this should help Michael narrow down the bug
> >
> > could you try to add "memory" to the clobber list as the gcc devels 
> > suggested and see if that fixes it?
> 
> Yep, that did it. Congrats!
>
Unfortunately it doesn't work for me :(

I'm building on X86 with MingW:
$ gcc --version
gcc.exe (GCC) 3.4.5 (mingw special)

$ ./configure --enable-memalign-hack --enable-libogg --enable-vorbis --enable-faad --enable-mp3lame --enable-gpl

The lines to compile h264.c: 

gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I/home/klaas/ffmpeg
-I/home/klaas/ffmpeg -I/home/klaas/ffmpeg/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statement
-Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -O3  -c -o h264.o h264.c
h264.c: In function `hl_decode_mb':
h264.c:3661: warning: suggest parentheses around arithmetic in operand of ^
h264.c:3667: warning: suggest parentheses around arithmetic in operand of ^
h264.c: In function `get_te0_golomb':
....

Anyone else using MingW or Cygwin with the same probs?

Klaas-Pieter Vlieg




More information about the ffmpeg-devel mailing list