Mercurial > libavformat.hg
comparison mpegts.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 | 6831f12fbf76 |
children | c226029c8df4 |
comparison
equal
deleted
inserted
replaced
2273:7eb456c4ed8a | 2274:b21c2af60bc9 |
---|---|
1012 int skip, len; | 1012 int skip, len; |
1013 | 1013 |
1014 for(;;) { | 1014 for(;;) { |
1015 len = get_buffer(pb, buf, TS_PACKET_SIZE); | 1015 len = get_buffer(pb, buf, TS_PACKET_SIZE); |
1016 if (len != TS_PACKET_SIZE) | 1016 if (len != TS_PACKET_SIZE) |
1017 return AVERROR_IO; | 1017 return AVERROR(EIO); |
1018 /* check paquet sync byte */ | 1018 /* check paquet sync byte */ |
1019 if (buf[0] != 0x47) { | 1019 if (buf[0] != 0x47) { |
1020 /* find a new packet start */ | 1020 /* find a new packet start */ |
1021 url_fseek(pb, -TS_PACKET_SIZE, SEEK_CUR); | 1021 url_fseek(pb, -TS_PACKET_SIZE, SEEK_CUR); |
1022 if (mpegts_resync(pb) < 0) | 1022 if (mpegts_resync(pb) < 0) |