[FFmpeg-devel] [PATCH] riff: fix remuxing of G723_1 in wav

Michael Niedermayer michaelni at gmx.at
Tue Jul 24 18:55:00 CEST 2012


On Tue, Jul 24, 2012 at 12:40:42AM +0200, Piotr Bandurski wrote:
> 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)

> diff --git a/libavformat/riff.c b/libavformat/riff.c
> index e3cf459..64f6e1d 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))) {

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored awnser#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120724/16d91bb1/attachment.asc>


More information about the ffmpeg-devel mailing list