Mercurial > libavformat.hg
comparison avisynth.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 | 0899bfe4105c |
children | 7a0230981402 |
comparison
equal
deleted
inserted
replaced
2273:7eb456c4ed8a | 2274:b21c2af60bc9 |
---|---|
154 | 154 |
155 // handle interleaving manually... | 155 // handle interleaving manually... |
156 stream = &avs->streams[stream_id]; | 156 stream = &avs->streams[stream_id]; |
157 | 157 |
158 if (stream->read >= stream->info.dwLength) | 158 if (stream->read >= stream->info.dwLength) |
159 return AVERROR_IO; | 159 return AVERROR(EIO); |
160 | 160 |
161 if (av_new_packet(pkt, stream->chunck_size)) | 161 if (av_new_packet(pkt, stream->chunck_size)) |
162 return AVERROR_IO; | 162 return AVERROR(EIO); |
163 pkt->stream_index = stream_id; | 163 pkt->stream_index = stream_id; |
164 pkt->pts = avs->streams[stream_id].read / avs->streams[stream_id].chunck_samples; | 164 pkt->pts = avs->streams[stream_id].read / avs->streams[stream_id].chunck_samples; |
165 | 165 |
166 res = AVIStreamRead(stream->handle, stream->read, stream->chunck_samples, pkt->data, stream->chunck_size, &read_size, NULL); | 166 res = AVIStreamRead(stream->handle, stream->read, stream->chunck_samples, pkt->data, stream->chunck_size, &read_size, NULL); |
167 | 167 |