Anton Khirnov | 9 Aug 2012 01:02
Favicon

api-example: update to new audio encoding API.

ffmpeg | branch: master | Anton Khirnov <anton <at> khirnov.net> | Tue Jul 31 15:32:02 2012 +0200|
[5702c8670e3f3bcdacec918ff64326ccd7af7236] | committer: Anton Khirnov

api-example: update to new audio encoding API.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5702c8670e3f3bcdacec918ff64326ccd7af7236
---

 libavcodec/api-example.c |  137 ++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 120 insertions(+), 17 deletions(-)

diff --git a/libavcodec/api-example.c b/libavcodec/api-example.c
index cdb22c6..533b6f7 100644
--- a/libavcodec/api-example.c
+++ b/libavcodec/api-example.c
 <at>  <at>  -37,6 +37,7  <at>  <at> 
 #endif

 #include "libavcodec/avcodec.h"
+#include "libavutil/audioconvert.h"
 #include "libavutil/mathematics.h"
 #include "libavutil/samplefmt.h"

 <at>  <at>  -44,6 +45,59  <at>  <at> 
 #define AUDIO_INBUF_SIZE 20480
 #define AUDIO_REFILL_THRESH 4096

+/* check that a given sample format is supported by the encoder */
+static int check_sample_fmt(AVCodec *codec, enum AVSampleFormat sample_fmt)
+{
(Continue reading)


Gmane