Commit b9e24390 authored by bcoudurier's avatar bcoudurier

priv_data is allocated internally

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7459 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b2c7d67d
......@@ -739,18 +739,13 @@ static int swf_probe(AVProbeData *p)
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))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment