diff --git a/libav/ffm.c b/libav/ffm.c
index 9ae03e7d15f9ec0bd48a4f19a10738b8ccb8ba3b..1d1564a6399df54fd3452245012519bdfcd7f24a 100644
--- a/libav/ffm.c
+++ b/libav/ffm.c
@@ -141,7 +141,7 @@ static int ffm_write_header(AVFormatContext *s)
     /* list of streams */
     for(i=0;i<s->nb_streams;i++) {
         st = s->streams[i];
-        fst = av_mallocz(sizeof(FFMStream) + ffm->packet_size);
+        fst = av_mallocz(sizeof(FFMStream));
         if (!fst)
             goto fail;
         st->priv_data = fst;
@@ -383,7 +383,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
         if (!st)
             goto fail;
         s->streams[i] = st;
-        fst = av_mallocz(sizeof(FFMStream) + ffm->packet_size);
+        fst = av_mallocz(sizeof(FFMStream));
         if (!fst)
             goto fail;
         st->priv_data = fst;