[FFmpeg-cvslog] r17297 - trunk/libavcodec/xvmc.h

Diego Biurrun diego
Sun Feb 15 00:56:30 CET 2009


On Sun, Feb 15, 2009 at 01:50:57AM +0200, Ivan Kalvachev wrote:
> On 2/15/09, Diego Biurrun <diego at biurrun.de> wrote:
> > On Sun, Feb 15, 2009 at 12:28:09AM +0100, iive wrote:
> >>
> >> Log:
> >> Depricate some unused xvmc structure fields.
> >>
> >> --- trunk/libavcodec/xvmc.h	Sun Feb 15 00:13:32 2009	(r17296)
> >> +++ trunk/libavcodec/xvmc.h	Sun Feb 15 00:28:09 2009	(r17297)
> >> @@ -38,9 +38,13 @@ struct xvmc_render_state {
> >>      XvMCMacroBlock* mv_blocks;
> >>      int             total_number_of_mv_blocks;
> >>      int             total_number_of_data_blocks;
> >> +#if LIBAVCODEC_VERSION_MAJOR < 53
> >>      int             mc_type;                      ///<
> >> XVMC_MPEG1/2/4,XVMC_H263 without XVMC_IDCT
> >> +#endif
> >>      int             idct;                         ///< indicate that IDCT
> >> acceleration level is used
> >> +#if LIBAVCODEC_VERSION_MAJOR < 53
> >>      int             chroma_format;                ///<
> >> XVMC_CHROMA_FORMAT_420/422/444
> >> +#endif
> >
> > History repeats itself.  Same as your commit earlier today, this is
> > missing an avcodec.h #include, which is absolutely necessary in this
> > installed header.
> 
> It compiles for me.

Sure it compiles, but it's buggy nonetheless. The compiler assumes
undefined definitions to be 0 and thus the condition is always true
and will not trigger on the next version bump.

> I remember avcodec.h been there. where did it go?

I removed it along with the AV_FOO <--> MP_FOO compatibility glue that
was deemed unnecessary since the header was no longer required.

Diego




More information about the ffmpeg-cvslog mailing list