Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Basin <basinilya@gmail.com>2013-12-16 13:08:03 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-12-21 15:21:05 +0400
commit7d1d0b3ecf98d178bc93dd1a4e75614abea1cd67 (patch)
treefdc6614142f7ff63dc7f537065554a00167e0f7b /doc/examples/muxing.c
parentb6714fa077d9d6ba8bc0f46a84c9398d413b8c22 (diff)
examples/muxing: use S16 sample_fmt for resample src regardless of codec sample_fmt
We generate S16 samples and we should allocate the right buffer Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples/muxing.c')
-rw-r--r--doc/examples/muxing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 5f716c22a4..d6e0256e60 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -157,7 +157,7 @@ static void open_audio(AVFormatContext *oc, AVCodec *codec, AVStream *st)
10000 : c->frame_size;
ret = av_samples_alloc_array_and_samples(&src_samples_data, &src_samples_linesize, c->channels,
- src_nb_samples, c->sample_fmt, 0);
+ src_nb_samples, AV_SAMPLE_FMT_S16, 0);
if (ret < 0) {
fprintf(stderr, "Could not allocate source samples\n");
exit(1);