comparison asf.c @ 482:0fdc96c2f2fe libavformat

sweeping change from -EIO -> AVERROR_IO
author melanson
date Sat, 19 Jun 2004 03:59:34 +0000
parents 696f41bc8784
children 0a997108f384
comparison
equal deleted inserted replaced
481:f1430abbbd8b 482:0fdc96c2f2fe
432 } 432 }
433 if ((c & 0x0f) == 2) { // always true for now 433 if ((c & 0x0f) == 2) { // always true for now
434 if (get_le16(pb) != 0) { 434 if (get_le16(pb) != 0) {
435 if (!url_feof(pb)) 435 if (!url_feof(pb))
436 av_log(s, AV_LOG_ERROR, "ff asf bad non zero\n"); 436 av_log(s, AV_LOG_ERROR, "ff asf bad non zero\n");
437 return -EIO; 437 return AVERROR_IO;
438 } 438 }
439 rsize+=2; 439 rsize+=2;
440 /* }else{ 440 /* }else{
441 if (!url_feof(pb)) 441 if (!url_feof(pb))
442 printf("ff asf bad header %x at:%lld\n", c, url_ftell(pb)); 442 printf("ff asf bad header %x at:%lld\n", c, url_ftell(pb));
443 return -EIO;*/ 443 return AVERROR_IO;*/
444 } 444 }
445 445
446 asf->packet_flags = get_byte(pb); 446 asf->packet_flags = get_byte(pb);
447 asf->packet_property = get_byte(pb); 447 asf->packet_property = get_byte(pb);
448 448
488 url_fskip(pb, ret); 488 url_fskip(pb, ret);
489 asf->packet_pos= url_ftell(&s->pb); 489 asf->packet_pos= url_ftell(&s->pb);
490 ret = asf_get_packet(s); 490 ret = asf_get_packet(s);
491 //printf("READ ASF PACKET %d r:%d c:%d\n", ret, asf->packet_size_left, pc++); 491 //printf("READ ASF PACKET %d r:%d c:%d\n", ret, asf->packet_size_left, pc++);
492 if (ret < 0 || url_feof(pb)) 492 if (ret < 0 || url_feof(pb))
493 return -EIO; 493 return AVERROR_IO;
494 asf->packet_time_start = 0; 494 asf->packet_time_start = 0;
495 continue; 495 continue;
496 } 496 }
497 if (asf->packet_time_start == 0) { 497 if (asf->packet_time_start == 0) {
498 /* read frame header */ 498 /* read frame header */