Mercurial > libavformat.hg
changeset 1641:ea284c26b0f4 libavformat
priv_data is allocated internally
author | bcoudurier |
---|---|
date | Sun, 14 Jan 2007 02:21:28 +0000 |
parents | ec1236a03504 |
children | 8b62e4e73069 |
files | swf.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/swf.c Sun Jan 14 01:57:43 2007 +0000 +++ b/swf.c Sun Jan 14 02:21:28 2007 +0000 @@ -739,18 +739,13 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) { - SWFContext *swf = 0; + SWFContext *swf = s->priv_data; ByteIOContext *pb = &s->pb; int nbits, len, frame_rate, tag, v; offset_t firstTagOff; AVStream *ast = 0; AVStream *vst = 0; - swf = av_malloc(sizeof(SWFContext)); - if (!swf) - return -1; - s->priv_data = swf; - tag = get_be32(pb) & 0xffffff00; if (tag == MKBETAG('C', 'W', 'S', 0))