Commit e51b3e89 authored by philipjsg's avatar philipjsg

* Get the buffer size right now we have the buffer inside the FFStream block


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@666 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f6cb8dd4
...@@ -141,7 +141,7 @@ static int ffm_write_header(AVFormatContext *s) ...@@ -141,7 +141,7 @@ static int ffm_write_header(AVFormatContext *s)
/* list of streams */ /* list of streams */
for(i=0;i<s->nb_streams;i++) { for(i=0;i<s->nb_streams;i++) {
st = s->streams[i]; st = s->streams[i];
fst = av_mallocz(sizeof(FFMStream) + ffm->packet_size); fst = av_mallocz(sizeof(FFMStream));
if (!fst) if (!fst)
goto fail; goto fail;
st->priv_data = fst; st->priv_data = fst;
...@@ -383,7 +383,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -383,7 +383,7 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
if (!st) if (!st)
goto fail; goto fail;
s->streams[i] = st; s->streams[i] = st;
fst = av_mallocz(sizeof(FFMStream) + ffm->packet_size); fst = av_mallocz(sizeof(FFMStream));
if (!fst) if (!fst)
goto fail; goto fail;
st->priv_data = fst; st->priv_data = fst;
......
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