Mercurial > libavformat.hg
comparison mpc.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 | d52c718e83f9 |
comparison
equal
deleted
inserted
replaced
2273:7eb456c4ed8a | 2274:b21c2af60bc9 |
---|---|
146 c->frames_noted++; | 146 c->frames_noted++; |
147 } | 147 } |
148 c->curbits = (curbits + size2) & 0x1F; | 148 c->curbits = (curbits + size2) & 0x1F; |
149 | 149 |
150 if (av_new_packet(pkt, size) < 0) | 150 if (av_new_packet(pkt, size) < 0) |
151 return AVERROR_IO; | 151 return AVERROR(EIO); |
152 | 152 |
153 pkt->data[0] = curbits; | 153 pkt->data[0] = curbits; |
154 pkt->data[1] = (c->curframe > c->fcount); | 154 pkt->data[1] = (c->curframe > c->fcount); |
155 | 155 |
156 pkt->stream_index = 0; | 156 pkt->stream_index = 0; |
158 ret = get_buffer(&s->pb, pkt->data + 4, size); | 158 ret = get_buffer(&s->pb, pkt->data + 4, size); |
159 if(c->curbits) | 159 if(c->curbits) |
160 url_fseek(&s->pb, -4, SEEK_CUR); | 160 url_fseek(&s->pb, -4, SEEK_CUR); |
161 if(ret < size){ | 161 if(ret < size){ |
162 av_free_packet(pkt); | 162 av_free_packet(pkt); |
163 return AVERROR_IO; | 163 return AVERROR(EIO); |
164 } | 164 } |
165 pkt->size = ret + 4; | 165 pkt->size = ret + 4; |
166 | 166 |
167 return 0; | 167 return 0; |
168 } | 168 } |