[FFmpeg-cvslog] nuv: Reset the frame on resize
Luca Barbato
git at videolan.org
Mon Nov 4 19:06:57 CET 2013
ffmpeg | branch: release/0.10 | Luca Barbato <lu_zero at gentoo.org> | Tue Aug 13 06:01:48 2013 +0200| [abb41f19cc10fea09fb16d9ecc9967b2a78cf7b0] | committer: Luca Barbato
nuv: Reset the frame on resize
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
Conflicts:
libavcodec/nuv.c
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=abb41f19cc10fea09fb16d9ecc9967b2a78cf7b0
---
libavcodec/nuv.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
index 8545d86..ea5e9ee 100644
--- a/libavcodec/nuv.c
+++ b/libavcodec/nuv.c
@@ -129,6 +129,8 @@ static int codec_reinit(AVCodecContext *avctx, int width, int height, int qualit
} else
c->decomp_buf = ptr;
rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height, c->lq, c->cq);
+ if (c->pic.data[0])
+ avctx->release_buffer(avctx, &c->pic);
} else if (quality != c->quality)
rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height, c->lq, c->cq);
return 0;
More information about the ffmpeg-cvslog
mailing list