[FFmpeg-devel] utils.c audio_frame_size question

Baptiste Coudurier baptiste.coudurier
Sun Jun 29 21:44:36 CEST 2008


Hi

Ronald S. Bultje wrote:
> [...]
> 
> static int has_codec_parameters(AVCodecContext *enc)
> {
>     int val;
>     switch(enc->codec_type) {
>     case CODEC_TYPE_AUDIO:
>         val = enc->sample_rate && enc->channels;
>         if(!enc->frame_size &&
>            (enc->codec_id == CODEC_ID_VORBIS ||
>             enc->codec_id == CODEC_ID_AAC))
>             return 0;
>         break;
> 
> Isn't that counterintuitive? Shouldn't it be !(codec_id == VORBIS ||
> AAC)? Seems like it'd never work for AAC/VORBIS (I'm indeed having a
> problem, for AAC in this case).
> 

Humm I think this is right and intended, when need frame size for aac
and vorbis.

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Smartjog USA Inc.                                http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA




More information about the ffmpeg-devel mailing list