Mercurial > libavformat.hg
diff psxstr.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 | 771ab1d4fd6e |
line wrap: on
line diff
--- a/psxstr.c Mon Nov 19 20:28:11 2007 +0000 +++ b/psxstr.c Wed Nov 21 07:41:00 2007 +0000 @@ -125,7 +125,7 @@ static int str_read_header(AVFormatContext *s, AVFormatParameters *ap) { - ByteIOContext *pb = &s->pb; + ByteIOContext *pb = s->pb; StrDemuxContext *str = s->priv_data; AVStream *st; unsigned char sector[RAW_CD_SECTOR_SIZE]; @@ -249,7 +249,7 @@ static int str_read_packet(AVFormatContext *s, AVPacket *ret_pkt) { - ByteIOContext *pb = &s->pb; + ByteIOContext *pb = s->pb; StrDemuxContext *str = s->priv_data; unsigned char sector[RAW_CD_SECTOR_SIZE]; int channel;
