changeset 6128:c34ed49b26c6 libavformat

output-example: Set sample_fmt to SAMPLE_FMT_S16.
author ramiro
date Mon, 14 Jun 2010 07:05:59 +0000
parents f9967eb0abfd
children fec869707e4f
files output-example.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/output-example.c	Fri Jun 11 17:16:43 2010 +0000
+++ b/output-example.c	Mon Jun 14 07:05:59 2010 +0000
@@ -68,6 +68,7 @@
     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;