Mercurial > libavformat.hg
diff idroq.c @ 2771:d52c718e83f9 libavformat
Use dynamically allocated ByteIOContext in AVFormatContext
patch by: Bj?rn Axelsson, bjorn d axelsson a intinor d se
thread: [PATCH] Remove static ByteIOContexts, 06 nov 2007
| author | andoma |
|---|---|
| date | Wed, 21 Nov 2007 07:41:00 +0000 |
| parents | b21c2af60bc9 |
| children | 7a0230981402 |
line wrap: on
line diff
--- a/idroq.c Mon Nov 19 20:28:11 2007 +0000 +++ b/idroq.c Wed Nov 21 07:41:00 2007 +0000 @@ -69,7 +69,7 @@ AVFormatParameters *ap) { RoqDemuxContext *roq = s->priv_data; - ByteIOContext *pb = &s->pb; + ByteIOContext *pb = s->pb; AVStream *st; unsigned char preamble[RoQ_CHUNK_PREAMBLE_SIZE]; int i; @@ -174,7 +174,7 @@ AVPacket *pkt) { RoqDemuxContext *roq = s->priv_data; - ByteIOContext *pb = &s->pb; + ByteIOContext *pb = s->pb; int ret = 0; unsigned int chunk_size; unsigned int chunk_type; @@ -185,7 +185,7 @@ while (!packet_read) { - if (url_feof(&s->pb)) + if (url_feof(s->pb)) return AVERROR(EIO); /* get the next chunk preamble */
