[Ffmpeg-devel] h.264 decoder segfault

Francois Oligny-Lemieux eucloid
Wed Jan 24 04:46:16 CET 2007


On 1/23/07, Michael Niedermayer <michaelni at gmx.at> wrote:
>
> Hi
>
> On Wed, Jan 24, 2007 at 12:45:21AM +0100, Diego Biurrun wrote:
> > On Tue, Jan 23, 2007 at 07:47:42PM +0100, Benoit Fouet wrote:
> > > Reimar D?ffinger wrote:
> > > >> --- libavcodec/h264.c   (revision 7661)
> > > >> +++ libavcodec/h264.c   (working copy)
> > > >> @@ -26,6 +26,8 @@
> > > >>
> > > >> +#undef ARCH_X86
> > > >> +#undef HAVE_MMX
> > > >>  #include "common.h"
> > > >>  #include "dsputil.h"
> > > >>  #include "avcodec.h"
> > > >>
> > > >
> > > > Um.. I don't think those #undefs have any point if they are before
> > > > #include "common.h"...
> > > >
> > > due to my lack of knowledge on ffmpeg, i put them at the very
> beginning
> > > of the file :)
> > > what should have i done to do it properly ?
> >
> > Put them after all includes.


Maybe to have its maximum effect you should edit libavutils/common.h and put
the #undefs directly after #include "config.h"

Francois Oligny-Lemieux




More information about the ffmpeg-devel mailing list