[FFmpeg-cvslog] r18961 - trunk/libavformat/mpegts.c
bcoudurier
subversion
Wed May 27 02:46:20 CEST 2009
Author: bcoudurier
Date: Wed May 27 02:46:20 2009
New Revision: 18961
Log:
check that len is not negative
Modified:
trunk/libavformat/mpegts.c
Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c Wed May 27 02:44:00 2009 (r18960)
+++ trunk/libavformat/mpegts.c Wed May 27 02:46:20 2009 (r18961)
@@ -892,6 +892,8 @@ static void mpegts_push_data(MpegTSFilte
/* PES packing parsing */
case MPEGTS_PESHEADER_FILL:
len = pes->pes_header_size - pes->data_index;
+ if (len < 0)
+ return
if (len > buf_size)
len = buf_size;
memcpy(pes->header + pes->data_index, p, len);
More information about the ffmpeg-cvslog
mailing list