diff options
author | Mike Melanson <mike@multimedia.cx> | 2004-06-19 03:59:34 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2004-06-19 03:59:34 +0000 |
commit | 0bd586c50dc27ec38ca94e58f50030544d729463 (patch) | |
tree | daa391f5efede8e58b88431b9b453dcbd1e6c2e0 /libavformat/idcin.c | |
parent | cbf5374fc0f733cefe304fd4d11c7b0fa21fba61 (diff) | |
download | ffmpeg-0bd586c50dc27ec38ca94e58f50030544d729463.tar.gz |
sweeping change from -EIO -> AVERROR_IO
Originally committed as revision 3239 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/idcin.c')
-rw-r--r-- | libavformat/idcin.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/idcin.c b/libavformat/idcin.c index b6944b055c..164cf556c6 100644 --- a/libavformat/idcin.c +++ b/libavformat/idcin.c @@ -167,7 +167,7 @@ static int idcin_read_header(AVFormatContext *s, st->codec.extradata = av_malloc(HUFFMAN_TABLE_SIZE); if (get_buffer(pb, st->codec.extradata, HUFFMAN_TABLE_SIZE) != HUFFMAN_TABLE_SIZE) - return -EIO; + return AVERROR_IO; /* save a reference in order to transport the palette */ st->codec.palctrl = &idcin->palctrl; @@ -224,17 +224,17 @@ static int idcin_read_packet(AVFormatContext *s, unsigned char palette_buffer[768]; if (url_feof(&s->pb)) - return -EIO; + return AVERROR_IO; if (idcin->next_chunk_is_video) { command = get_le32(pb); if (command == 2) { - return -EIO; + return AVERROR_IO; } else if (command == 1) { /* trigger a palette change */ idcin->palctrl.palette_changed = 1; if (get_buffer(pb, palette_buffer, 768) != 768) - return -EIO; + return AVERROR_IO; /* scale the palette as necessary */ palette_scale = 2; for (i = 0; i < 768; i++) @@ -256,12 +256,12 @@ static int idcin_read_packet(AVFormatContext *s, url_fseek(pb, 4, SEEK_CUR); chunk_size -= 4; if (av_new_packet(pkt, chunk_size)) - ret = -EIO; + ret = AVERROR_IO; pkt->stream_index = idcin->video_stream_index; pkt->pts = idcin->pts; ret = get_buffer(pb, pkt->data, chunk_size); if (ret != chunk_size) - ret = -EIO; + ret = AVERROR_IO; } else { /* send out the audio chunk */ if (idcin->current_audio_chunk) @@ -269,12 +269,12 @@ static int idcin_read_packet(AVFormatContext *s, else chunk_size = idcin->audio_chunk_size1; if (av_new_packet(pkt, chunk_size)) - return -EIO; + return AVERROR_IO; pkt->stream_index = idcin->audio_stream_index; pkt->pts = idcin->pts; ret = get_buffer(&s->pb, pkt->data, chunk_size); if (ret != chunk_size) - ret = -EIO; + ret = AVERROR_IO; idcin->current_audio_chunk ^= 1; idcin->pts += FRAME_PTS_INC; |