Mercurial > libavformat.hg
comparison utils.c @ 2274:b21c2af60bc9 libavformat
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
author | takis |
---|---|
date | Thu, 19 Jul 2007 15:23:32 +0000 |
parents | 7eb456c4ed8a |
children | 3c1e2d519277 |
comparison
equal
deleted
inserted
replaced
2273:7eb456c4ed8a | 2274:b21c2af60bc9 |
---|---|
447 pd->buf_size = get_buffer(pb, pd->buf, probe_size); | 447 pd->buf_size = get_buffer(pb, pd->buf, probe_size); |
448 if (url_fseek(pb, 0, SEEK_SET) < 0) { | 448 if (url_fseek(pb, 0, SEEK_SET) < 0) { |
449 url_fclose(pb); | 449 url_fclose(pb); |
450 if (url_fopen(pb, filename, URL_RDONLY) < 0) { | 450 if (url_fopen(pb, filename, URL_RDONLY) < 0) { |
451 file_opened = 0; | 451 file_opened = 0; |
452 err = AVERROR_IO; | 452 err = AVERROR(EIO); |
453 goto fail; | 453 goto fail; |
454 } | 454 } |
455 } | 455 } |
456 /* guess file format */ | 456 /* guess file format */ |
457 fmt = av_probe_input_format2(pd, 1, &score); | 457 fmt = av_probe_input_format2(pd, 1, &score); |