comparison dxa.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
147 url_fseek(&s->pb, c->wavpos, SEEK_SET); 147 url_fseek(&s->pb, c->wavpos, SEEK_SET);
148 size = FFMIN(c->bytes_left, c->bpc); 148 size = FFMIN(c->bytes_left, c->bpc);
149 ret = av_get_packet(&s->pb, pkt, size); 149 ret = av_get_packet(&s->pb, pkt, size);
150 pkt->stream_index = 1; 150 pkt->stream_index = 1;
151 if(ret != size) 151 if(ret != size)
152 return AVERROR_IO; 152 return AVERROR(EIO);
153 c->bytes_left -= size; 153 c->bytes_left -= size;
154 c->wavpos = url_ftell(&s->pb); 154 c->wavpos = url_ftell(&s->pb);
155 return 0; 155 return 0;
156 } 156 }
157 url_fseek(&s->pb, c->vidpos, SEEK_SET); 157 url_fseek(&s->pb, c->vidpos, SEEK_SET);
184 return AVERROR(ENOMEM); 184 return AVERROR(ENOMEM);
185 memcpy(pkt->data + pal_size, buf, DXA_EXTRA_SIZE); 185 memcpy(pkt->data + pal_size, buf, DXA_EXTRA_SIZE);
186 ret = get_buffer(&s->pb, pkt->data + DXA_EXTRA_SIZE + pal_size, size); 186 ret = get_buffer(&s->pb, pkt->data + DXA_EXTRA_SIZE + pal_size, size);
187 if(ret != size){ 187 if(ret != size){
188 av_free_packet(pkt); 188 av_free_packet(pkt);
189 return AVERROR_IO; 189 return AVERROR(EIO);
190 } 190 }
191 if(pal_size) memcpy(pkt->data, pal, pal_size); 191 if(pal_size) memcpy(pkt->data, pal, pal_size);
192 pkt->stream_index = 0; 192 pkt->stream_index = 0;
193 c->frames--; 193 c->frames--;
194 c->vidpos = url_ftell(&s->pb); 194 c->vidpos = url_ftell(&s->pb);