summaryrefslogtreecommitdiff
path: root/libavformat/psxstr.c
diff options
context:
space:
mode:
authorMike Melanson <mike@multimedia.cx>2004-06-19 03:59:34 +0000
committerMike Melanson <mike@multimedia.cx>2004-06-19 03:59:34 +0000
commit0bd586c50dc27ec38ca94e58f50030544d729463 (patch)
treedaa391f5efede8e58b88431b9b453dcbd1e6c2e0 /libavformat/psxstr.c
parentcbf5374fc0f733cefe304fd4d11c7b0fa21fba61 (diff)
sweeping change from -EIO -> AVERROR_IO
Originally committed as revision 3239 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/psxstr.c')
-rw-r--r--libavformat/psxstr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/psxstr.c b/libavformat/psxstr.c
index d3ba74f83c..57fc97d3a2 100644
--- a/libavformat/psxstr.c
+++ b/libavformat/psxstr.c
@@ -257,7 +257,7 @@ static int str_read_packet(AVFormatContext *s,
while (!packet_read) {
if (get_buffer(pb, sector, RAW_CD_SECTOR_SIZE) != RAW_CD_SECTOR_SIZE)
- return -EIO;
+ return AVERROR_IO;
channel = sector[0x11];
if (channel >= 32)
@@ -279,7 +279,7 @@ static int str_read_packet(AVFormatContext *s,
pkt = &str->tmp_pkt;
if (current_sector == 0) {
if (av_new_packet(pkt, frame_size))
- return -EIO;
+ return AVERROR_IO;
pkt->stream_index =
str->channels[channel].video_stream_index;
@@ -315,7 +315,7 @@ printf (" dropping audio sector\n");
if (channel == str->audio_channel) {
pkt = ret_pkt;
if (av_new_packet(pkt, 2304))
- return -EIO;
+ return AVERROR_IO;
memcpy(pkt->data,sector+24,2304);
pkt->stream_index =
@@ -334,7 +334,7 @@ printf (" dropping other sector\n");
}
if (url_feof(pb))
- return -EIO;
+ return AVERROR_IO;
}
return ret;