[FFmpeg-cvslog] ra144enc: remove unneeded sample_fmt check

Justin Ruggles git at videolan.org
Sun Feb 26 05:21:47 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Wed Feb 22 13:10:38 2012 -0500| [a65f7c96fce257966ca7e224cbc1ff91af81e91c] | committer: Justin Ruggles

ra144enc: remove unneeded sample_fmt check

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a65f7c96fce257966ca7e224cbc1ff91af81e91c
---

 libavcodec/ra144enc.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/libavcodec/ra144enc.c b/libavcodec/ra144enc.c
index c8a09a2..302f66b 100644
--- a/libavcodec/ra144enc.c
+++ b/libavcodec/ra144enc.c
@@ -38,10 +38,6 @@ static av_cold int ra144_encode_init(AVCodecContext * avctx)
     RA144Context *ractx;
     int ret;
 
-    if (avctx->sample_fmt != AV_SAMPLE_FMT_S16) {
-        av_log(avctx, AV_LOG_ERROR, "invalid sample format\n");
-        return -1;
-    }
     if (avctx->channels != 1) {
         av_log(avctx, AV_LOG_ERROR, "invalid number of channels: %d\n",
                avctx->channels);



More information about the ffmpeg-cvslog mailing list