[FFmpeg-cvslog] roqaudioenc: 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:40:03 2012 -0500| [56279f1d6155a7af52526b9852ee28831d0232a6] | committer: Justin Ruggles
roqaudioenc: remove unneeded sample_fmt check
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=56279f1d6155a7af52526b9852ee28831d0232a6
---
libavcodec/roqaudioenc.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/libavcodec/roqaudioenc.c b/libavcodec/roqaudioenc.c
index 3747f18..1562417 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;
More information about the ffmpeg-cvslog
mailing list