Mercurial > libavformat.hg
diff electronicarts.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 | 5fec787b0889 |
line wrap: on
line diff
--- a/electronicarts.c Thu Jul 19 15:21:30 2007 +0000 +++ b/electronicarts.c Thu Jul 19 15:23:32 2007 +0000 @@ -178,7 +178,7 @@ AVStream *st; if (!process_ea_header(s)) - return AVERROR_IO; + return AVERROR(EIO); #if 0 /* initialize the video decoder stream */ @@ -226,7 +226,7 @@ while (!packet_read) { if (get_buffer(pb, preamble, EA_PREAMBLE_SIZE) != EA_PREAMBLE_SIZE) - return AVERROR_IO; + return AVERROR(EIO); chunk_type = AV_RL32(&preamble[0]); chunk_size = AV_RL32(&preamble[4]) - EA_PREAMBLE_SIZE; @@ -235,7 +235,7 @@ case SCDl_TAG: ret = av_get_packet(pb, pkt, chunk_size); if (ret != chunk_size) - ret = AVERROR_IO; + ret = AVERROR(EIO); else { pkt->stream_index = ea->audio_stream_index; pkt->pts = 90000; @@ -253,7 +253,7 @@ /* ending tag */ case SCEl_TAG: - ret = AVERROR_IO; + ret = AVERROR(EIO); packet_read = 1; break;