On Wed, Sep 21, 2011 at 08:46:33PM +0200, [email protected] wrote: > From: Laurent Aimar <[email protected]> > > --- > libavcodec/vp56.c | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) > > diff --git a/libavcodec/vp56.c b/libavcodec/vp56.c > index e18c59e..698201b 100644 > --- a/libavcodec/vp56.c > +++ b/libavcodec/vp56.c > @@ -515,6 +515,16 @@ int ff_vp56_decode_frame(AVCodecContext *avctx, void > *data, int *data_size, > if (!res) > return -1; > > + if (res == 2) { > + int i; > + for (i = 0; i < 4; i++) { > + if (s->frames[i].data[0]) > + avctx->release_buffer(avctx, &s->frames[i]); > + } > + if (is_alpha) > + return -1; > + } > + > if (!is_alpha) { > p->reference = 1; > if (avctx->get_buffer(avctx, p) < 0) {
together with "[3/4] Fix error recovery code on size changes in vp5/6 decoder" ok and queued > -- > 1.7.2.5 > > _______________________________________________ > libav-devel mailing list > [email protected] > https://lists.libav.org/mailman/listinfo/libav-devel _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
