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

Michael Niedermayer michaelni at gmx.at
Mon Jun 25 02:52:40 CEST 2007


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


[...]
> +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()


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I count him braver who overcomes his desires than him who conquers his
enemies for the hardest victory is over self. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20070625/268e8853/attachment.pgp>


More information about the FFmpeg-soc mailing list