aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-10-27 20:22:14 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-01 21:23:03 -0400
commit6e8d4a7afbf40c0eb4bd70a6e7724d22ce7a6239 (patch)
treeee789ff7b87f41cdb324db1b02fbb2ef364ab18b
parent6ac34eed54f8e0298acb16636d0104c297e3d09f (diff)
downloadffmpeg-6e8d4a7afbf40c0eb4bd70a6e7724d22ce7a6239.tar.gz
g726dec: remove the sample_rate validation
-rw-r--r--libavcodec/g726.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index 339281110c..b17d578d53 100644
--- a/libavcodec/g726.c
+++ b/libavcodec/g726.c
@@ -366,11 +366,6 @@ static av_cold int g726_decode_init(AVCodecContext *avctx)
{
G726Context* c = avctx->priv_data;
- if (avctx->sample_rate <= 0) {
- av_log(avctx, AV_LOG_ERROR, "Samplerate is invalid\n");
- return -1;
- }
-
if(avctx->channels != 1){
av_log(avctx, AV_LOG_ERROR, "Only mono is supported\n");
return -1;