Revision f3b5a1a2

View differences:

libavformat/utils.c
1729 1729
    switch(enc->codec_type) {
1730 1730
    case CODEC_TYPE_AUDIO:
1731 1731
        val = enc->sample_rate && enc->channels;
1732
        if(enc->codec_id == CODEC_ID_VORBIS && !enc->frame_size)
1732
        if(!enc->frame_size &&
1733
           (enc->codec_id == CODEC_ID_VORBIS ||
1734
            enc->codec_id == CODEC_ID_AAC))
1733 1735
            return 0;
1734 1736
        break;
1735 1737
    case CODEC_TYPE_VIDEO:

Also available in: Unified diff