summaryrefslogtreecommitdiff
path: root/libavformat/swf.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-19 15:23:32 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-19 15:23:32 +0000
commit6f3e0b21748b53fd7b0471196bbda1d7e561f4fe (patch)
tree5130d5b49907a72bf1f16c7861ec3b891a3708e4 /libavformat/swf.c
parent769e10f0684c63aefb6fe36788f3e543312e185d (diff)
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/swf.c')
-rw-r--r--libavformat/swf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c
index ca4befec01..286462381b 100644
--- a/libavformat/swf.c
+++ b/libavformat/swf.c
@@ -639,10 +639,10 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
if (tag == MKBETAG('C', 'W', 'S', 0))
{
av_log(s, AV_LOG_ERROR, "Compressed SWF format not supported\n");
- return AVERROR_IO;
+ return AVERROR(EIO);
}
if (tag != MKBETAG('F', 'W', 'S', 0))
- return AVERROR_IO;
+ return AVERROR(EIO);
get_le32(pb);
/* skip rectangle size */
nbits = get_byte(pb) >> 3;
@@ -684,7 +684,7 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
ast->need_parsing = AVSTREAM_PARSE_FULL;
sample_rate_code= (v>>2) & 3;
if (!sample_rate_code)
- return AVERROR_IO;
+ return AVERROR(EIO);
ast->codec->sample_rate = 11025 << (sample_rate_code-1);
av_set_pts_info(ast, 64, 1, ast->codec->sample_rate);
if (len > 4)
@@ -715,7 +715,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
for(;;) {
tag = get_swf_tag(pb, &len);
if (tag < 0)
- return AVERROR_IO;
+ return AVERROR(EIO);
if (tag == TAG_VIDEOFRAME) {
int ch_id = get_le16(pb);
len -= 2;