diff options
author | Piotr Bandurski <ami_stuff@o2.pl> | 2012-07-24 00:40:42 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-24 18:53:53 +0200 |
commit | b9c129be0f44ca69f800125cd840d5ce2d2d08d1 (patch) | |
tree | 7f520c9bd0b89b948b44963476638ac501ca8d38 | |
parent | 01272e7662b58b549d2e86c06442a6c4bc1d814a (diff) | |
download | ffmpeg-b9c129be0f44ca69f800125cd840d5ce2d2d08d1.tar.gz |
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>
-rw-r--r-- | libavformat/riff.c | 2 |
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))) { |