changeset 5970:8bb6b2e62a62 libavformat

Change a %2 to &1. Patch by Sebastian Vater <cdgs DOT basty googlemail com>.
author rbultje
date Tue, 20 Apr 2010 17:05:02 +0000
parents 178de7695c6c
children 43548500ffbc
files avidec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Tue Apr 20 14:45:34 2010 +0000
+++ b/avidec.c	Tue Apr 20 17:05:02 2010 +0000
@@ -560,7 +560,7 @@
                         av_log(s, AV_LOG_WARNING, "sample size (%d) != block align (%d)\n", ast->sample_size, st->codec->block_align);
                         ast->sample_size= st->codec->block_align;
                     }
-                    if (size%2) /* 2-aligned (fix for Stargate SG-1 - 3x18 - Shades of Grey.avi) */
+                    if (size&1) /* 2-aligned (fix for Stargate SG-1 - 3x18 - Shades of Grey.avi) */
                         url_fskip(pb, 1);
                     /* Force parsing as several audio frames can be in
                      * one packet and timestamps refer to packet start. */