[Ffmpeg-cvslog] r6947 - trunk/libavformat/matroska.c

Alex Beregszaszi alex
Wed Nov 8 21:25:16 CET 2006


Hi,

> Log:
> add support for AAC in matroska

Why matroska has to be so complicated? :)

> +                if (extradata == NULL)
> +                    return AVERROR_NOMEM;
> +                extradata[0] = (profile << 3) | ((sri&0x0E) >> 1);
> +                extradata[1] = ((sri&0x01) << 7) |
> (audiotrack->channels<<3); +                if
> (strstr(track->codec_id, "SBR")) { +                    sri =
> matroska_aac_sri(audiotrack->samplerate); +                   
> extradata[2] = 0x56; +                    extradata[3] = 0xE5;
> +                    extradata[4] = 0x80 | (sri<<3);
> +                    extradata_size = 5;
> +                } else {
> +                    extradata_size = 2;
> +                }
> +            }

-- 
Alex Beregszaszi | alex at fsn.hu




More information about the ffmpeg-cvslog mailing list