Mercurial > libavformat.hg
diff eacdata.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 | 25028505671c |
| children | 7a0230981402 |
line wrap: on
line diff
--- a/eacdata.c Mon Nov 19 20:28:11 2007 +0000 +++ b/eacdata.c Wed Nov 21 07:41:00 2007 +0000 @@ -47,7 +47,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap) { CdataDemuxContext *cdata = s->priv_data; - ByteIOContext *pb = &s->pb; + ByteIOContext *pb = s->pb; unsigned int sample_rate, header; AVStream *st; @@ -83,7 +83,7 @@ CdataDemuxContext *cdata = s->priv_data; int packet_size = 76*cdata->channels; - if (av_get_packet(&s->pb, pkt, packet_size) != packet_size) + if (av_get_packet(s->pb, pkt, packet_size) != packet_size) return AVERROR(EIO); pkt->pts = cdata->audio_pts++; return 1;
