[FFmpeg-cvslog] lxfdec: remove wrong and unneeded check
Luca Barbato
git at videolan.org
Tue Jun 25 21:38:34 CEST 2013
ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Jun 25 19:13:06 2013 +0000| [da8c9b324c7b47a95edb35320b66d0c409bb6de5] | committer: Paul B Mahol
lxfdec: remove wrong and unneeded check
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=da8c9b324c7b47a95edb35320b66d0c409bb6de5
---
libavformat/lxfdec.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c
index 876f988..5c61d4f 100644
--- a/libavformat/lxfdec.c
+++ b/libavformat/lxfdec.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list