diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2010-06-14 07:05:59 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2010-06-14 07:05:59 +0000 |
commit | 1f1916cea2161e0865d559689863ec9c71fcc041 (patch) | |
tree | 6a004b2e21895223bb787cf97e292d277ec2d40a | |
parent | 30d9331050f51031ce99df3f538f70aa4bf4d7b8 (diff) | |
download | ffmpeg-1f1916cea2161e0865d559689863ec9c71fcc041.tar.gz |
output-example: Set sample_fmt to SAMPLE_FMT_S16.
Originally committed as revision 23597 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/output-example.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |