[Ffmpeg-cvslog] r7459 - trunk/libavformat/swf.c
bcoudurier
subversion
Sun Jan 14 03:21:29 CET 2007
Author: bcoudurier
Date: Sun Jan 14 03:21:28 2007
New Revision: 7459
Modified:
trunk/libavformat/swf.c
Log:
priv_data is allocated internally
Modified: trunk/libavformat/swf.c
==============================================================================
--- trunk/libavformat/swf.c (original)
+++ trunk/libavformat/swf.c Sun Jan 14 03:21:28 2007
@@ -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))
More information about the ffmpeg-cvslog
mailing list