Mercurial > libavformat.hg
diff apc.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 | 7e3332b84926 |
line wrap: on
line diff
--- a/apc.c Mon Nov 19 20:28:11 2007 +0000 +++ b/apc.c Wed Nov 21 07:41:00 2007 +0000 @@ -32,7 +32,7 @@ static int apc_read_header(AVFormatContext *s, AVFormatParameters *ap) { - ByteIOContext *pb = &s->pb; + ByteIOContext *pb = s->pb; AVStream *st; get_le32(pb); /* CRYO */ @@ -74,7 +74,7 @@ static int apc_read_packet(AVFormatContext *s, AVPacket *pkt) { - if (av_get_packet(&s->pb, pkt, MAX_READ_SIZE) <= 0) + if (av_get_packet(s->pb, pkt, MAX_READ_SIZE) <= 0) return AVERROR(EIO); pkt->stream_index = 0; return 0;