diff options
Diffstat (limited to 'libavformat/psxstr.c')
-rw-r--r-- | libavformat/psxstr.c | 8 |
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; |