diff options
author | Michel Bardiaux <mbardiaux@peaktime.be> | 2007-01-29 14:07:12 +0000 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-01-29 14:07:12 +0000 |
commit | d8b7b352a80787301ab246157c67b58fcfa0b26c (patch) | |
tree | d80cf64556fccc16f16d857e3ab0305cc176df8f | |
parent | 753c9d3260004042525a4e84bc61251af58e0f2b (diff) | |
download | ffmpeg-d8b7b352a80787301ab246157c67b58fcfa0b26c.tar.gz |
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
-rw-r--r-- | libavcodec/bmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/bmp.c b/libavcodec/bmp.c index e621c68ea9..5792142bad 100644 --- a/libavcodec/bmp.c +++ b/libavcodec/bmp.c @@ -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"); |