Mercurial > libavformat.hg
diff flvdec.c @ 2274:b21c2af60bc9 libavformat
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
author | takis |
---|---|
date | Thu, 19 Jul 2007 15:23:32 +0000 |
parents | 7eb456c4ed8a |
children | 74c1aa100084 |
line wrap: on
line diff
--- a/flvdec.c Thu Jul 19 15:21:30 2007 +0000 +++ b/flvdec.c Thu Jul 19 15:23:32 2007 +0000 @@ -270,7 +270,7 @@ pts = get_be24(&s->pb); // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, pts:%d\n", type, size, pts); if (url_feof(&s->pb)) - return AVERROR_IO; + return AVERROR(EIO); url_fskip(&s->pb, 4); /* reserved */ flags = 0; @@ -348,7 +348,7 @@ ret= av_get_packet(&s->pb, pkt, size - 1); if (ret <= 0) { - return AVERROR_IO; + return AVERROR(EIO); } /* note: we need to modify the packet size here to handle the last packet */