Commit 0f6bf84b authored by takis's avatar takis

Fix segfault in bmp decoder. Patch by Michel Bardiaux mbardiaux mediaxim dot be.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7757 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d149a1f4
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment