[svn] / branches / release-1_3-branch / xvidcore / src / image / image.c Repository:
ViewVC logotype

Diff of /branches/release-1_3-branch/xvidcore/src/image/image.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1959, Tue Mar 8 19:18:44 2011 UTC revision 2196, Fri May 29 21:18:51 2020 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: image.c,v 1.46.2.2 2011-03-08 19:18:34 Isibaar Exp $   * $Id$
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 151  Line 151 
151    
152          /* According to the Standard Clause 7.6.4, padding is done starting at 16          /* According to the Standard Clause 7.6.4, padding is done starting at 16
153           * pixel width and height multiples. This was not respected in old xvids */           * pixel width and height multiples. This was not respected in old xvids */
154          if (bs_version >= SETEDGES_BUG_BEFORE &&          if ((bs_version >= SETEDGES_BUG_BEFORE &&
155                  bs_version <  SETEDGES_BUG_AFTER ||                  bs_version <  SETEDGES_BUG_AFTER) ||
156                  bs_version >= SETEDGES_BUG_REFIXED) {                  bs_version >= SETEDGES_BUG_REFIXED) {
157                  width  = (width+15)&~15;                  width  = (width+15)&~15;
158                  height = (height+15)&~15;                  height = (height+15)&~15;
159          }          }
160    
161          width2 = width/2;          width2 = MAX(1, width/2);
162    
163          for (i = 0; i < EDGE_SIZE; i++) {          for (i = 0; i < EDGE_SIZE; i++) {
164                  memset(dst, *src, EDGE_SIZE);                  memset(dst, *src, EDGE_SIZE);

Legend:
Removed from v.1959  
changed lines
  Added in v.2196

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4