mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-14 16:57:21 +00:00
Fix segfault in bmp decoder. Patch by Michel Bardiaux mbardiaux mediaxim dot be.
Originally committed as revision 7757 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
753c9d3260
commit
d8b7b352a8
@ -158,6 +158,9 @@ static int bmp_decode_frame(AVCodecContext *avctx,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(p->data[0])
|
||||
avctx->release_buffer(avctx, p);
|
||||
|
||||
p->reference = 0;
|
||||
if(avctx->get_buffer(avctx, p) < 0){
|
||||
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user