Revision 6748046e libavformat/wav.c

View differences:

libavformat/wav.c
105 105
        put_le16(pb, 2); /* wav_extra_size */
106 106
        hdrsize += 2;
107 107
        put_le16(pb, ((enc->block_align - 4 * enc->channels) / (4 * enc->channels)) * 8 + 1); /* wSamplesPerBlock */
108
    } else
109
        put_le16(pb, 0); /* wav_extra_size */
108
    } else {
109
        put_le16(pb, enc->extradata_size);
110
        put_buffer(pb, enc->extradata, enc->extradata_size);
111
        hdrsize += enc->extradata_size;
112
    }
110 113

  
111 114
    return hdrsize;
112 115
}

Also available in: Unified diff