switch(enc->codec_type) {
case CODEC_TYPE_AUDIO:
val = enc->sample_rate && enc->channels;
- if(enc->codec_id == CODEC_ID_VORBIS && !enc->frame_size)
+ if(!enc->frame_size &&
+ (enc->codec_id == CODEC_ID_VORBIS ||
+ enc->codec_id == CODEC_ID_AAC))
return 0;
break;
case CODEC_TYPE_VIDEO: