Revision 2c2a167c libavformat/riff.c

View differences:

libavformat/riff.c
322 322

  
323 323
    if(!enc->codec_tag || enc->codec_tag > 0xffff)
324 324
        return -1;
325
    waveformatextensible = enc->channels > 2 && enc->channel_layout;
325
    waveformatextensible =   (enc->channels > 2 && enc->channel_layout)
326
                          || enc->sample_rate > 48000
327
                          || av_get_bits_per_sample(enc->codec_id) > 16;
326 328

  
327 329
    if (waveformatextensible) {
328 330
        put_le16(pb, 0xfffe);

Also available in: Unified diff