diff options
author | Ilya Basin <basinilya@gmail.com> | 2013-12-16 13:08:03 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-21 12:21:05 +0100 |
commit | 7d1d0b3ecf98d178bc93dd1a4e75614abea1cd67 (patch) | |
tree | fdc6614142f7ff63dc7f537065554a00167e0f7b /doc/examples | |
parent | b6714fa077d9d6ba8bc0f46a84c9398d413b8c22 (diff) | |
download | ffmpeg-7d1d0b3ecf98d178bc93dd1a4e75614abea1cd67.tar.gz |
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')
-rw-r--r-- | doc/examples/muxing.c | 2 |
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); |