lxfdec: remove wrong and unneeded check
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 25 Jun 2013 19:13:06 +0000 (19:13 +0000)
committerPaul B Mahol <onemda@gmail.com>
Tue, 25 Jun 2013 19:38:00 +0000 (19:38 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/lxfdec.c

index 876f988ef553a5c59139d611f7735c32605b1717..5c61d4fcb0778cf891ebeccbe88a36bfce0a9745 100644 (file)
@@ -29,7 +29,6 @@
 #define LXF_IDENT               "LEITCH\0"
 #define LXF_IDENT_LENGTH        8
 #define LXF_SAMPLERATE          48000
-#define LXF_MAX_AUDIO_PACKET    (8008*15*4) ///< 15-channel 32-bit NTSC audio frame
 
 static const AVCodecTag lxf_tags[] = {
     { AV_CODEC_ID_MJPEG,       0 },
@@ -309,13 +308,6 @@ static int lxf_read_packet(AVFormatContext *s, AVPacket *pkt)
         return AVERROR_INVALIDDATA;
     }
 
-    //make sure the data fits in the de-planerization buffer
-    if (ast && ret > LXF_MAX_AUDIO_PACKET) {
-        av_log(s, AV_LOG_ERROR, "audio packet too large (%i > %i)\n",
-            ret, LXF_MAX_AUDIO_PACKET);
-        return AVERROR_INVALIDDATA;
-    }
-
     if ((ret2 = av_new_packet(pkt, ret)) < 0)
         return ret2;