[SCM] libav/experimental: output-example: Set sample_fmt to SAMPLE_FMT_S16.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:08:36 UTC 2013


The following commit has been merged in the experimental branch:
commit 1f1916cea2161e0865d559689863ec9c71fcc041
Author: Ramiro Polla <ramiro.polla at gmail.com>
Date:   Mon Jun 14 07:05:59 2010 +0000

    output-example: Set sample_fmt to SAMPLE_FMT_S16.
    
    Originally committed as revision 23597 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/output-example.c b/libavformat/output-example.c
index dd61cfe..15e2d9a 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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list