Update of /cvsroot/xine/xine-lib/src/libffmpeg
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27614
Modified Files:
video_decoder.c
Log Message:
Instead of using a padding of arbitrary 32-bits by hand, use memset with the
constant used to provide the padding size.
Index: video_decoder.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/libffmpeg/video_decoder.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -r1.69 -r1.70
--- video_decoder.c 21 Jan 2007 15:12:21 -0000 1.69
+++ video_decoder.c 3 Mar 2007 13:33:34 -0000 1.70
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2001-2004 the xine project
+ * Copyright (C) 2001-2007 the xine project
*
* This file is part of xine, a free video player.
*
@@ -1140,10 +1140,7 @@
/* note: bitstream, alt bitstream reader or something will cause
* severe mpeg4 artifacts if padding is less than 32 bits.
*/
- chunk_buf[this->size+0] = 0;
- chunk_buf[this->size+1] = 0;
- chunk_buf[this->size+2] = 0;
- chunk_buf[this->size+3] = 0;
+ memset(&chunk_buf[this->size], 0, FF_INPUT_BUFFER_PADDING_SIZE);
while (this->size > 0) {
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog