pass extradata through ffm

Originally committed as revision 13721 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier
2008-06-09 00:36:27 +00:00
parent d8b1dffbc5
commit 7080cbe2c8
2 changed files with 11 additions and 1 deletions

View File

@ -168,6 +168,10 @@ static int ffm_write_header(AVFormatContext *s)
default:
return -1;
}
if (codec->flags & CODEC_FLAG_GLOBAL_HEADER) {
put_be32(pb, codec->extradata_size);
put_buffer(pb, codec->extradata, codec->extradata_size);
}
}
/* flush until end of block reached */