[Ffmpeg-cvslog] r7661 - trunk/libavcodec/h264.c

michael subversion
Tue Jan 23 13:45:57 CET 2007


Author: michael
Date: Tue Jan 23 13:45:57 2007
New Revision: 7661

Modified:
   trunk/libavcodec/h264.c

Log:
adding assert to protect delayed_pic


Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Tue Jan 23 13:45:57 2007
@@ -8341,6 +8341,9 @@
 
         pics = 0;
         while(h->delayed_pic[pics]) pics++;
+
+        assert(pics+1 < sizeof(h->delayed_pic) / sizeof(h->delayed_pic[0]));
+
         h->delayed_pic[pics++] = cur;
         if(cur->reference == 0)
             cur->reference = 1;




More information about the ffmpeg-cvslog mailing list