[FFmpeg-cvslog] r19121 - trunk/libavcodec/vb.c
Kostya
kostya.shishkov
Sat Jun 6 11:33:43 CEST 2009
On Sat, Jun 06, 2009 at 01:51:22AM -0700, Baptiste Coudurier wrote:
> Hi Kostya,
>
> kostya wrote:
> > Author: kostya
> > Date: Sat Jun 6 10:46:08 2009
> > New Revision: 19121
> >
> > Log:
> > Get new buffer during frame decoding in VB video decoder, not only once
> > during decoder initialization.
> >
> > Modified:
> > trunk/libavcodec/vb.c
> >
> > Modified: trunk/libavcodec/vb.c
> > ==============================================================================
> > --- trunk/libavcodec/vb.c Sat Jun 6 07:38:09 2009 (r19120)
> > +++ trunk/libavcodec/vb.c Sat Jun 6 10:46:08 2009 (r19121)
> > @@ -185,6 +185,14 @@ static int decode_frame(AVCodecContext *
> > int rest = buf_size;
> > int offset = 0;
> >
> > + if(c->pic.data[0])
> > + avctx->release_buffer(avctx, &c->pic);
> > + c->pic.reference = 1;
> > + if(avctx->get_buffer(avctx, &c->pic) < 0){
> > + av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
> > + return -1;
> > + }
> > +
>
> Thanks for fixing this. Does this decoder now support CODEC_CAP_DR1 ? :>
That's my duty. It should now since it only gets buffer and write data
to it (no alignment requirements or anything).
> --
> Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
More information about the ffmpeg-cvslog
mailing list