[FFmpeg-cvslog] nuv: Reset the frame on resize
Luca Barbato
git at videolan.org
Wed Aug 14 10:54:42 CEST 2013
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Aug 13 06:01:48 2013 +0200| [feaaf5f7f0afac7223457f871af2ec9b99eb6cc6] | committer: Luca Barbato
nuv: Reset the frame on resize
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=feaaf5f7f0afac7223457f871af2ec9b99eb6cc6
---
libavcodec/nuv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
index 0905411..086e57c 100644
--- a/libavcodec/nuv.c
+++ b/libavcodec/nuv.c
@@ -134,6 +134,7 @@ static int codec_reinit(AVCodecContext *avctx, int width, int height,
}
ff_rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height,
c->lq, c->cq);
+ av_frame_unref(&c->pic);
} else if (quality != c->quality)
ff_rtjpeg_decode_init(&c->rtj, &c->dsp, c->width, c->height,
c->lq, c->cq);
More information about the ffmpeg-cvslog
mailing list