1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

doc/examples/transcode_aac: remove non converted codepath

This codepath is not implemented and just crashes, also its simpler
without special cases, which makes sense for an example

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-11-27 11:22:19 +01:00
parent 7497c894cd
commit ba728c1a25

View File

@ -230,12 +230,6 @@ static int init_resampler(AVCodecContext *input_codec_context,
AVCodecContext *output_codec_context, AVCodecContext *output_codec_context,
SwrContext **resample_context) SwrContext **resample_context)
{ {
/**
* Only initialize the resampler if it is necessary, i.e.,
* if and only if the sample formats differ.
*/
if (input_codec_context->sample_fmt != output_codec_context->sample_fmt ||
input_codec_context->channels != output_codec_context->channels) {
int error; int error;
/** /**
@ -270,7 +264,6 @@ static int init_resampler(AVCodecContext *input_codec_context,
swr_free(resample_context); swr_free(resample_context);
return error; return error;
} }
}
return 0; return 0;
} }