[FFmpeg-soc] [soc]: r279 - matroska/matroskaenc.c

David Conrad umovimus at gmail.com
Sat Jul 7 05:58:01 CEST 2007


On Jun 24, 2007, at 8:52 PM, Michael Niedermayer wrote:

> Hi
>
> On Mon, Jun 25, 2007 at 02:24:04AM +0200, conrad wrote:
>> Author: conrad
>> Date: Mon Jun 25 02:24:04 2007
>> New Revision: 279
>>
>> Log:
>> Write the Seek Head element
>>
>> Modified:
>>    matroska/matroskaenc.c
> [...]
>> +typedef struct mkv_seekhead {
>> +    offset_t                filepos;
>> +    offset_t                segment_offset;     // the file  
>> offset to the beginning of the segment
>> +    int                     reserved_size;      // -1 if  
>> appending to file
>
> comments arent doxygen compatible

fixed

> [...]
>> +static int ebml_id_size(unsigned int id)
>> +{
>> +    if (id >= 0x3fffff)
>> +        return 4;
>> +    if (id >= 0x7fff)
>> +        return 3;
>> +    if (id >= 0xff)
>> +        return 2;
>> +    return 1;
>
> maybe this can be done simpler with av_log2()

I couldn't figure out how to scale the values to get the correct  
answers :(



More information about the FFmpeg-soc mailing list