[Ffmpeg-cvslog] r7757 - trunk/libavcodec/bmp.c

takis subversion
Mon Jan 29 15:07:12 CET 2007


Author: takis
Date: Mon Jan 29 15:07:12 2007
New Revision: 7757

Modified:
   trunk/libavcodec/bmp.c

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


Modified: trunk/libavcodec/bmp.c
==============================================================================
--- trunk/libavcodec/bmp.c	(original)
+++ trunk/libavcodec/bmp.c	Mon Jan 29 15:07:12 2007
@@ -158,6 +158,9 @@
         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");




More information about the ffmpeg-cvslog mailing list