comparison utils.c @ 1455:c4539ef4d8cb libavcodec

removed warnings
author bellard
date Tue, 09 Sep 2003 22:59:16 +0000
parents 7fbe89a76b73
children 670fca257a69
comparison
equal deleted inserted replaced
1454:8b6e5cca1d37 1455:c4539ef4d8cb
220 InternalBuffer *buf, *last, temp; 220 InternalBuffer *buf, *last, temp;
221 221
222 assert(pic->type==FF_BUFFER_TYPE_INTERNAL); 222 assert(pic->type==FF_BUFFER_TYPE_INTERNAL);
223 assert(s->internal_buffer_count); 223 assert(s->internal_buffer_count);
224 224
225 buf = NULL; /* avoids warning */
225 for(i=0; i<s->internal_buffer_count; i++){ //just 3-5 checks so is not worth to optimize 226 for(i=0; i<s->internal_buffer_count; i++){ //just 3-5 checks so is not worth to optimize
226 buf= &((InternalBuffer*)s->internal_buffer)[i]; 227 buf= &((InternalBuffer*)s->internal_buffer)[i];
227 if(buf->data[0] == pic->data[0]) 228 if(buf->data[0] == pic->data[0])
228 break; 229 break;
229 } 230 }