[MPlayer-cvslog] r32697 - trunk/libmpdemux/demux_ts.c

reimar subversion at mplayerhq.hu
Sun Dec 12 00:19:13 CET 2010


Author: reimar
Date: Sun Dec 12 00:19:13 2010
New Revision: 32697

Log:
Replace memcpy with memove since at least src==dst is possible.
Fixes another issue that is part of bug #1280.

Modified:
   trunk/libmpdemux/demux_ts.c

Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c	Sun Dec 12 00:15:48 2010	(r32696)
+++ trunk/libmpdemux/demux_ts.c	Sun Dec 12 00:19:13 2010	(r32697)
@@ -3180,7 +3180,7 @@ static int ts_parse(demuxer_t *demuxer ,
 			}
 			else
 			{
-				memcpy(es->start, p, sz);
+				memmove(es->start, p, sz);
 
 				if(es->size)
 					return es->size;


More information about the MPlayer-cvslog mailing list