]> git.sesse.net Git - ffmpeg/commitdiff
roqaudioenc: remove unneeded sample_fmt check
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 22 Feb 2012 18:40:03 +0000 (13:40 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 25 Feb 2012 16:49:43 +0000 (11:49 -0500)
libavcodec/roqaudioenc.c

index 3747f18c1b0d73fba4471ed370302993bc2edead..1562417a7e178dbe3b5fb0c2d4a1f0272cbe3713 100644 (file)
@@ -49,10 +49,6 @@ static av_cold int roq_dpcm_encode_init(AVCodecContext *avctx)
         av_log(avctx, AV_LOG_ERROR, "Audio must be 22050 Hz\n");
         return -1;
     }
-    if (avctx->sample_fmt != AV_SAMPLE_FMT_S16) {
-        av_log(avctx, AV_LOG_ERROR, "Audio must be signed 16-bit\n");
-        return -1;
-    }
 
     avctx->frame_size = ROQ_FIRST_FRAME_SIZE;