OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df727d4
)
motionpixels/mp_decode_frame_helper: assert that the first pixel doesnt reuse the...
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 18 Oct 2012 23:20:27 +0000
(
01:20
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 18 Oct 2012 23:20:27 +0000
(
01:20
+0200)
reusing the last would use uninitialized data, this should be
impossible currently, but better to check by assert.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/motionpixels.c
patch
|
blob
|
history
diff --git
a/libavcodec/motionpixels.c
b/libavcodec/motionpixels.c
index
471f63f
..
7366713
100644
(file)
--- a/
libavcodec/motionpixels.c
+++ b/
libavcodec/motionpixels.c
@@
-220,6
+220,8
@@
static void mp_decode_frame_helper(MotionPixelsContext *mp, GetBitContext *gb)
YuvPixel p;
int y, y0;
+ av_assert1(mp->changes_map[0]);
+
for (y = 0; y < mp->avctx->height; ++y) {
if (mp->changes_map[y * mp->avctx->width] != 0) {
memset(mp->gradient_scale, 1, sizeof(mp->gradient_scale));