diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-27 11:22:19 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-27 11:22:19 +0100 |
commit | ba728c1a2527a02f239fdfaf118a618b758721db (patch) | |
tree | 55c3731be91a9496daf403fbf232ed086961ed6b /doc/examples | |
parent | 7497c894cd36f6d3e713ddefeeedbd8d880cc896 (diff) | |
download | ffmpeg-ba728c1a2527a02f239fdfaf118a618b758721db.tar.gz |
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>
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/transcode_aac.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/doc/examples/transcode_aac.c b/doc/examples/transcode_aac.c index cfed0e16b7..35deb4c03e 100644 --- a/doc/examples/transcode_aac.c +++ b/doc/examples/transcode_aac.c @@ -230,12 +230,6 @@ static int init_resampler(AVCodecContext *input_codec_context, AVCodecContext *output_codec_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; /** @@ -270,7 +264,6 @@ static int init_resampler(AVCodecContext *input_codec_context, swr_free(resample_context); return error; } - } return 0; } |