[FFmpeg-cvslog] alacenc: remove unneeded sample_fmt check
Justin Ruggles
git at videolan.org
Thu Aug 23 14:41:49 CEST 2012
ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Aug 21 11:27:34 2012 -0400| [358078d9bb89d6266e274720eba8582ec7b1c6b7] | committer: Justin Ruggles
alacenc: remove unneeded sample_fmt check
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=358078d9bb89d6266e274720eba8582ec7b1c6b7
---
libavcodec/alacenc.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index 5b00a7a..d337e40 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -426,11 +426,6 @@ static av_cold int alac_encode_init(AVCodecContext *avctx)
avctx->frame_size = s->frame_size = DEFAULT_FRAME_SIZE;
- if (avctx->sample_fmt != AV_SAMPLE_FMT_S16) {
- av_log(avctx, AV_LOG_ERROR, "only pcm_s16 input samples are supported\n");
- return -1;
- }
-
/* TODO: Correctly implement multi-channel ALAC.
It is similar to multi-channel AAC, in that it has a series of
single-channel (SCE), channel-pair (CPE), and LFE elements. */
More information about the ffmpeg-cvslog
mailing list