mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-25 04:09:57 +00:00
* Get the buffer size right now we have the buffer inside the FFStream block
Originally committed as revision 666 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e4c47db44b
commit
16300e23d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user