ra144enc: remove unneeded sample_fmt check
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 22 Feb 2012 18:10:38 +0000 (13:10 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 25 Feb 2012 16:49:42 +0000 (11:49 -0500)
libavcodec/ra144enc.c

index c8a09a2..302f66b 100644 (file)
@@ -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);