diff utils.c @ 1455:c4539ef4d8cb libavcodec

removed warnings
author bellard
date Tue, 09 Sep 2003 22:59:16 +0000
parents 7fbe89a76b73
children 670fca257a69
line wrap: on
line diff
--- a/utils.c	Tue Sep 09 22:56:25 2003 +0000
+++ b/utils.c	Tue Sep 09 22:59:16 2003 +0000
@@ -222,6 +222,7 @@
     assert(pic->type==FF_BUFFER_TYPE_INTERNAL);
     assert(s->internal_buffer_count);
 
+    buf = NULL; /* avoids warning */
     for(i=0; i<s->internal_buffer_count; i++){ //just 3-5 checks so is not worth to optimize
         buf= &((InternalBuffer*)s->internal_buffer)[i];
         if(buf->data[0] == pic->data[0])