comparison raw.c @ 2366:ddc8034208a5 libavformat

remove unneeded buf_size check (see AVPROBE_PADDING_SIZE)
author michael
date Fri, 10 Aug 2007 16:12:50 +0000
parents 76827ffd1cf6
children 8715adf607ce
comparison
equal deleted inserted replaced
2365:76827ffd1cf6 2366:ddc8034208a5
407 { 407 {
408 int max_frames, first_frames = 0, frames; 408 int max_frames, first_frames = 0, frames;
409 uint8_t *buf, *buf2, *end; 409 uint8_t *buf, *buf2, *end;
410 AC3HeaderInfo hdr; 410 AC3HeaderInfo hdr;
411 411
412 if(p->buf_size < 7)
413 return 0;
414
415 max_frames = 0; 412 max_frames = 0;
416 buf = p->buf; 413 buf = p->buf;
417 end = buf + p->buf_size; 414 end = buf + p->buf_size;
418 415
419 for(; buf < end; buf++) { 416 for(; buf < end; buf++) {