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/grab.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/grab.c')
-rw-r--r-- | libavformat/grab.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/grab.c b/libavformat/grab.c index a19cb743de..ded571b377 100644 --- a/libavformat/grab.c +++ b/libavformat/grab.c @@ -270,7 +270,7 @@ static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) if (video_fd >= 0) close(video_fd); av_free(st); - return -EIO; + return AVERROR_IO; } static int v4l_mm_read_picture(VideoData *s, uint8_t *buf) @@ -290,7 +290,7 @@ static int v4l_mm_read_picture(VideoData *s, uint8_t *buf) av_log(NULL, AV_LOG_ERROR, "Cannot Sync\n"); else perror("VIDIOCMCAPTURE"); - return -EIO; + return AVERROR_IO; } /* This is now the grabbing frame */ @@ -325,7 +325,7 @@ static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt) } if (av_new_packet(pkt, s->frame_size) < 0) - return -EIO; + return AVERROR_IO; pkt->pts = curtime & ((1LL << 48) - 1); @@ -336,7 +336,7 @@ static int grab_read_packet(AVFormatContext *s1, AVPacket *pkt) return v4l_mm_read_picture(s, pkt->data); } else { if (read(s->fd, pkt->data, pkt->size) != pkt->size) - return -EIO; + return AVERROR_IO; return s->frame_size; } } |