summaryrefslogtreecommitdiff
path: root/libavcodec/truemotion1.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2005-11-10 18:05:45 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2005-11-10 18:05:45 +0000
commita0ed075b29a23f26794755fd051d32e1725658ce (patch)
tree9d5e0411ea3850194bd192a4520a39c47f1e1309 /libavcodec/truemotion1.c
parent4b7e4bedd60af000fd284972cd02f17170de6fb2 (diff)
clear the whole vert_pred buffer for 24 bit decoding.
This is currently not needed since the decoder creates only half of the pixels, but should reduce confusion for people fiddling with it *g* Originally committed as revision 4687 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/truemotion1.c')
-rw-r--r--libavcodec/truemotion1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/truemotion1.c b/libavcodec/truemotion1.c
index c17ec6e702..b494b2851a 100644
--- a/libavcodec/truemotion1.c
+++ b/libavcodec/truemotion1.c
@@ -744,7 +744,7 @@ static void truemotion1_decode_24bit(TrueMotion1Context *s)
int index;
/* clean out the line buffer */
- memset(s->vert_pred, 0, s->avctx->width * sizeof(unsigned short));
+ memset(s->vert_pred, 0, s->avctx->width * sizeof(unsigned int));
GET_NEXT_INDEX();