[SCM] libav/experimental: Reduce the number of senselessly scanned bytes.
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:15:13 UTC 2013
The following commit has been merged in the experimental branch:
commit 05218081581f49c4c948cf8e95544075b41506bf
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Tue Feb 19 15:55:14 2008 +0000
Reduce the number of senselessly scanned bytes.
Originally committed as revision 12144 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index 87f673d..7f3a181 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -1869,7 +1869,7 @@ static int mpeg_decode_slice(Mpeg1Context *s1, int mb_y,
}
}
eos: // end of slice
- *buf += get_bits_count(&s->gb)/8 - 1;
+ *buf += (get_bits_count(&s->gb)-1)/8;
//printf("y %d %d %d %d\n", s->resync_mb_x, s->resync_mb_y, s->mb_x, s->mb_y);
return 0;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list