[FFmpeg-cvslog] g726dec: remove the sample_rate validation

Justin Ruggles git at videolan.org
Thu Nov 3 02:23:05 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Thu Oct 27 20:22:14 2011 -0400| [6e8d4a7afbf40c0eb4bd70a6e7724d22ce7a6239] | committer: Justin Ruggles

g726dec: remove the sample_rate validation

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6e8d4a7afbf40c0eb4bd70a6e7724d22ce7a6239
---

 libavcodec/g726.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/libavcodec/g726.c b/libavcodec/g726.c
index 3392811..b17d578 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;



More information about the ffmpeg-cvslog mailing list