Mercurial > libavformat.hg
comparison ogg2.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 | 214978878a19 |
comparison
equal
deleted
inserted
replaced
2273:7eb456c4ed8a | 2274:b21c2af60bc9 |
---|---|
538 int pstart, psize; | 538 int pstart, psize; |
539 | 539 |
540 //Get an ogg packet | 540 //Get an ogg packet |
541 do{ | 541 do{ |
542 if (ogg_packet (s, &idx, &pstart, &psize) < 0) | 542 if (ogg_packet (s, &idx, &pstart, &psize) < 0) |
543 return AVERROR_IO; | 543 return AVERROR(EIO); |
544 }while (idx < 0 || !s->streams[idx]); | 544 }while (idx < 0 || !s->streams[idx]); |
545 | 545 |
546 ogg = s->priv_data; | 546 ogg = s->priv_data; |
547 os = ogg->streams + idx; | 547 os = ogg->streams + idx; |
548 | 548 |
549 //Alloc a pkt | 549 //Alloc a pkt |
550 if (av_new_packet (pkt, psize) < 0) | 550 if (av_new_packet (pkt, psize) < 0) |
551 return AVERROR_IO; | 551 return AVERROR(EIO); |
552 pkt->stream_index = idx; | 552 pkt->stream_index = idx; |
553 memcpy (pkt->data, os->buf + pstart, psize); | 553 memcpy (pkt->data, os->buf + pstart, psize); |
554 if (os->lastgp != -1LL){ | 554 if (os->lastgp != -1LL){ |
555 pkt->pts = ogg_gptopts (s, idx, os->lastgp); | 555 pkt->pts = ogg_gptopts (s, idx, os->lastgp); |
556 os->lastgp = -1; | 556 os->lastgp = -1; |