diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-14 02:21:28 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-01-14 02:21:28 +0000 |
commit | 2ab573cdc3665ce1b1e0e7912d080cffa365f16b (patch) | |
tree | d56707e40764836e383918fafa08ecc7dbe075a3 /libavformat/swf.c | |
parent | a0dc1ccd29faab422a26b78985b83d4038c7403d (diff) | |
download | ffmpeg-2ab573cdc3665ce1b1e0e7912d080cffa365f16b.tar.gz |
priv_data is allocated internally
Originally committed as revision 7459 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/swf.c')
-rw-r--r-- | libavformat/swf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c index 21588fc012..1efcfd4a3f 100644 --- a/libavformat/swf.c +++ b/libavformat/swf.c @@ -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)) |