diff options
author | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-07-19 15:23:32 +0000 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-07-19 15:23:32 +0000 |
commit | 6f3e0b21748b53fd7b0471196bbda1d7e561f4fe (patch) | |
tree | 5130d5b49907a72bf1f16c7861ec3b891a3708e4 /libavformat/dsicin.c | |
parent | 769e10f0684c63aefb6fe36788f3e543312e185d (diff) | |
download | ffmpeg-6f3e0b21748b53fd7b0471196bbda1d7e561f4fe.tar.gz |
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dsicin.c')
-rw-r--r-- | libavformat/dsicin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/dsicin.c b/libavformat/dsicin.c index 32f4ac2729..b00bfd29b3 100644 --- a/libavformat/dsicin.c +++ b/libavformat/dsicin.c @@ -147,7 +147,7 @@ static int cin_read_frame_header(CinDemuxContext *cin, ByteIOContext *pb) { hdr->audio_frame_size = get_le32(pb); if (url_feof(pb) || url_ferror(pb)) - return AVERROR_IO; + return AVERROR(EIO); if (get_le32(pb) != 0xAA55AA55) return AVERROR_INVALIDDATA; @@ -189,7 +189,7 @@ static int cin_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->data[3] = hdr->video_frame_type; if (get_buffer(pb, &pkt->data[4], pkt_size) != pkt_size) - return AVERROR_IO; + return AVERROR(EIO); /* sound buffer will be processed on next read_packet() call */ cin->audio_buffer_size = hdr->audio_frame_size; @@ -205,7 +205,7 @@ static int cin_read_packet(AVFormatContext *s, AVPacket *pkt) cin->audio_stream_pts += cin->audio_buffer_size * 2 / cin->file_header.audio_frame_size; if (get_buffer(pb, pkt->data, cin->audio_buffer_size) != cin->audio_buffer_size) - return AVERROR_IO; + return AVERROR(EIO); cin->audio_buffer_size = 0; return 0; |