svq1: use av_frame_free to free refcounted frame

Fixes a memleak due to avcodec_free_frame not freeing the frame data.
This commit is contained in:
Janne Grunau 2013-03-10 21:30:54 +01:00
parent 669cc0f364
commit e3232f3431

View File

@ -793,7 +793,7 @@ static av_cold int svq1_decode_end(AVCodecContext *avctx)
{
SVQ1Context *s = avctx->priv_data;
avcodec_free_frame(&s->prev);
av_frame_free(&s->prev);
return 0;
}