From 56279f1d6155a7af52526b9852ee28831d0232a6 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Wed, 22 Feb 2012 13:40:03 -0500 Subject: [PATCH] roqaudioenc: remove unneeded sample_fmt check --- libavcodec/roqaudioenc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libavcodec/roqaudioenc.c b/libavcodec/roqaudioenc.c index 3747f18c1b..1562417a7e 100644 --- a/libavcodec/roqaudioenc.c +++ b/libavcodec/roqaudioenc.c @@ -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;