summaryrefslogtreecommitdiff
path: root/libavformat/dv1394.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/dv1394.c')
-rw-r--r--libavformat/dv1394.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/dv1394.c b/libavformat/dv1394.c
index 3a5f479c8e..93e08ee6e2 100644
--- a/libavformat/dv1394.c
+++ b/libavformat/dv1394.c
@@ -124,7 +124,7 @@ static int dv1394_read_header(AVFormatContext * context, AVFormatParameters * ap
failed:
close(dv->fd);
- return AVERROR_IO;
+ return AVERROR(EIO);
}
static int dv1394_read_packet(AVFormatContext *context, AVPacket *pkt)
@@ -163,12 +163,12 @@ restart_poll:
if (errno == EAGAIN || errno == EINTR)
goto restart_poll;
perror("Poll failed");
- return AVERROR_IO;
+ return AVERROR(EIO);
}
if (ioctl(dv->fd, DV1394_GET_STATUS, &s) < 0) {
perror("Failed to get status");
- return AVERROR_IO;
+ return AVERROR(EIO);
}
#ifdef DV1394_DEBUG
av_log(context, AV_LOG_DEBUG, "DV1394: status\n"