|
@@ -461,7 +461,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc) |
|
|
} |
|
|
} |
|
|
avio_wl16(pb, enc->channels); |
|
|
avio_wl16(pb, enc->channels); |
|
|
avio_wl32(pb, enc->sample_rate); |
|
|
avio_wl32(pb, enc->sample_rate); |
|
|
if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_GSM_MS) { |
|
|
|
|
|
|
|
|
if (enc->codec_id == CODEC_ID_MP2 || enc->codec_id == CODEC_ID_MP3 || enc->codec_id == CODEC_ID_GSM_MS || enc->codec_id == CODEC_ID_G723_1) { |
|
|
bps = 0; |
|
|
bps = 0; |
|
|
} else { |
|
|
} else { |
|
|
if (!(bps = av_get_bits_per_sample(enc->codec_id))) { |
|
|
if (!(bps = av_get_bits_per_sample(enc->codec_id))) { |
|
|