From b9c129be0f44ca69f800125cd840d5ce2d2d08d1 Mon Sep 17 00:00:00 2001 From: Piotr Bandurski Date: Tue, 24 Jul 2012 00:40:42 +0200 Subject: [PATCH] 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 --- libavformat/riff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) {