Add missing release_buffer on close
Originally committed as revision 20227 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d8b35b8586
commit
4b5fee0205
@ -832,6 +832,10 @@ static av_cold int decode_end(AVCodecContext *avctx){
|
|||||||
f->cfrm[i].allocated_size= 0;
|
f->cfrm[i].allocated_size= 0;
|
||||||
}
|
}
|
||||||
free_vlc(&f->pre_vlc);
|
free_vlc(&f->pre_vlc);
|
||||||
|
if(f->current_picture.data[0])
|
||||||
|
avctx->release_buffer(avctx, &f->current_picture);
|
||||||
|
if(f->last_picture.data[0])
|
||||||
|
avctx->release_buffer(avctx, &f->last_picture);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user