projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ca5ca2
)
4xm: don't rely on get_buffer() initializing the frame.
author
Anton Khirnov
<anton@khirnov.net>
Tue, 13 Nov 2012 21:10:54 +0000
(22:10 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Sun, 23 Dec 2012 10:17:53 +0000
(11:17 +0100)
libavcodec/4xm.c
patch
|
blob
|
history
diff --git
a/libavcodec/4xm.c
b/libavcodec/4xm.c
index
66149cc
..
fb03b7e
100644
(file)
--- a/
libavcodec/4xm.c
+++ b/
libavcodec/4xm.c
@@
-854,6
+854,7
@@
static int decode_frame(AVCodecContext *avctx, void *data,
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return -1;
}
+ memset(f->last_picture.data[0], 0, avctx->height * FFABS(f->last_picture.linesize[0]));
}
p->pict_type = AV_PICTURE_TYPE_P;