From 1f1916cea2161e0865d559689863ec9c71fcc041 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Mon, 14 Jun 2010 07:05:59 +0000 Subject: [PATCH] output-example: Set sample_fmt to SAMPLE_FMT_S16. Originally committed as revision 23597 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/output-example.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/output-example.c b/libavformat/output-example.c index dd61cfe088..15e2d9ac98 100644 --- a/libavformat/output-example.c +++ b/libavformat/output-example.c @@ -68,6 +68,7 @@ static AVStream *add_audio_stream(AVFormatContext *oc, enum CodecID codec_id) c->codec_type = AVMEDIA_TYPE_AUDIO; /* put sample parameters */ + c->sample_fmt = SAMPLE_FMT_S16; c->bit_rate = 64000; c->sample_rate = 44100; c->channels = 2;