Skip to content
Snippets Groups Projects
Commit 7d1d0b3e authored by Ilya Basin's avatar Ilya Basin Committed by Michael Niedermayer
Browse files

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: default avatarMichael Niedermayer <michaelni@gmx.at>
parent b6714fa0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment