[FFmpeg-cvslog] nellymoserdec: remove pointless buffer size check.

Justin Ruggles git at videolan.org
Sat Oct 29 02:31:40 CEST 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Oct 17 10:09:52 2011 -0400| [f19305fe93e3b400f4d6f0c3450e40e0605878d0] | committer: Justin Ruggles

nellymoserdec: remove pointless buffer size check.

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

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

diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c
index 2d59abf..ec045af 100644
--- a/libavcodec/nellymoserdec.c
+++ b/libavcodec/nellymoserdec.c
@@ -170,11 +170,6 @@ static int decode_tag(AVCodecContext * avctx,
     int16_t *samples_s16 = data;
     float   *samples_flt = data;
 
-    if (buf_size < avctx->block_align) {
-        *data_size = 0;
-        return buf_size;
-    }
-
     if (buf_size % NELLY_BLOCK_LEN) {
         av_log(avctx, AV_LOG_ERROR, "Tag size %d.\n", buf_size);
         *data_size = 0;



More information about the ffmpeg-cvslog mailing list