diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-08-13 06:01:48 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-08-13 13:09:33 +0200 |
commit | feaaf5f7f0afac7223457f871af2ec9b99eb6cc6 (patch) | |
tree | a4ae247ef14453addefecc830481339eaf87891a | |
parent | 075dbc185521f193c98b896cd63be3ec2613df5d (diff) | |
download | ffmpeg-streaming-feaaf5f7f0afac7223457f871af2ec9b99eb6cc6.zip ffmpeg-streaming-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |