[Ffmpeg-devel] VP6 erase metadata

Aurelien Jacobs aurel
Thu Mar 22 23:48:03 CET 2007


On Thu, 22 Mar 2007 23:09:38 +0100
Baptiste Coudurier <baptiste.coudurier at smartjog.com> wrote:

> Hi
> 
> Aurelien Jacobs wrote:
> > On Thu, 22 Mar 2007 11:46:26 +0100
> > Johan MATHE <johan.mathe at nonutc.fr> wrote:
> > 
> >> Hello,
> >>
> >> I've noticed than the VP6 decoder erase some metadata in the codec 
> >> context pointer (like size of video for example).
> > 
> > Is this supposed to be a bug repport ?
> > I have no idea of what you are talking about... Please be much more
> > precise if you expect anything to change.
> > 
> 
> I think he is referring to the fact that vp6 decoder in init function resets
> width and heigth to 0:
> 
> line 627: avcodec_set_dimensions(s->avctx, 0, 0);

The purpose was to ensure width and height are correctly initialized so that
the first call to the following code (vp6.c:76) always set dimension:

if (16*cols != s->avctx->coded_width ||
    16*rows != s->avctx->coded_height) {
       avcodec_set_dimensions(s->avctx, 16*cols, 16*rows);
       [...]
}

Aurel




More information about the ffmpeg-devel mailing list