Mercurial > libavformat.hg
diff thp.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 | c226029c8df4 |
| children | 7a0230981402 |
line wrap: on
line diff
--- a/thp.c Mon Nov 19 20:28:11 2007 +0000 +++ b/thp.c Wed Nov 21 07:41:00 2007 +0000 @@ -57,7 +57,7 @@ { ThpDemuxContext *thp = s->priv_data; AVStream *st; - ByteIOContext *pb = &s->pb; + ByteIOContext *pb = s->pb; int i; /* Read the file header. */ @@ -140,7 +140,7 @@ AVPacket *pkt) { ThpDemuxContext *thp = s->priv_data; - ByteIOContext *pb = &s->pb; + ByteIOContext *pb = s->pb; int size; int ret;
