Mercurial > libavformat.hg
diff rtsp.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 | b252e318023a |
children | b43dc2901f83 |
line wrap: on
line diff
--- a/rtsp.c Mon Nov 19 20:28:11 2007 +0000 +++ b/rtsp.c Wed Nov 21 07:41:00 2007 +0000 @@ -1351,7 +1351,7 @@ /* read the whole sdp file */ /* XXX: better loading */ content = av_malloc(SDP_MAX_SIZE); - size = get_buffer(&s->pb, content, SDP_MAX_SIZE - 1); + size = get_buffer(s->pb, content, SDP_MAX_SIZE - 1); if (size <= 0) { av_free(content); return AVERROR_INVALIDDATA;