Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Bandurski <ami_stuff@o2.pl>2012-07-24 02:40:42 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-07-24 20:53:53 +0400
commitb9c129be0f44ca69f800125cd840d5ce2d2d08d1 (patch)
tree7f520c9bd0b89b948b44963476638ac501ca8d38 /libavformat/riff.c
parent01272e7662b58b549d2e86c06442a6c4bc1d814a (diff)
riff: fix remuxing of G723_1 in wav
Attached patch fixes remuxing of G723.1 in wav, so the output is playable by WMP. (It's still not enough for encoding - probably some extradata should be added to the output file to make it playable by WMP/win codec) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r--libavformat/riff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index e3cf459642..64f6e1d56e 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -461,7 +461,7 @@ int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc)
}
avio_wl16(pb, enc->channels);
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;
} else {
if (!(bps = av_get_bits_per_sample(enc->codec_id))) {