Commit 13856d5d authored by ramiro's avatar ramiro

output-example: Set sample_fmt to SAMPLE_FMT_S16.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23597 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 08c0efd4
...@@ -68,6 +68,7 @@ static AVStream *add_audio_stream(AVFormatContext *oc, enum CodecID codec_id) ...@@ -68,6 +68,7 @@ static AVStream *add_audio_stream(AVFormatContext *oc, enum CodecID codec_id)
c->codec_type = AVMEDIA_TYPE_AUDIO; c->codec_type = AVMEDIA_TYPE_AUDIO;
/* put sample parameters */ /* put sample parameters */
c->sample_fmt = SAMPLE_FMT_S16;
c->bit_rate = 64000; c->bit_rate = 64000;
c->sample_rate = 44100; c->sample_rate = 44100;
c->channels = 2; c->channels = 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment