aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-08-13 06:01:48 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-08-13 13:09:33 +0200
commitfeaaf5f7f0afac7223457f871af2ec9b99eb6cc6 (patch)
treea4ae247ef14453addefecc830481339eaf87891a
parent075dbc185521f193c98b896cd63be3ec2613df5d (diff)
downloadffmpeg-feaaf5f7f0afac7223457f871af2ec9b99eb6cc6.tar.gz
nuv: Reset the frame on resize
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
-rw-r--r--libavcodec/nuv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
index 0905411449..086e57c501 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);