projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e6319
)
xan: Prevent NULL dereferences with missing reference frame
author
Laurent Aimar
<fenrir@videolan.org>
Tue, 27 Sep 2011 22:15:32 +0000
(22:15 +0000)
committer
Janne Grunau
<janne-libav@jannau.net>
Fri, 7 Oct 2011 14:25:31 +0000
(16:25 +0200)
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
libavcodec/xan.c
patch
|
blob
|
history
diff --git
a/libavcodec/xan.c
b/libavcodec/xan.c
index
f21075c
..
9e58a77
100644
(file)
--- a/
libavcodec/xan.c
+++ b/
libavcodec/xan.c
@@
-224,6
+224,8
@@
static inline void xan_wc3_copy_pixel_run(XanContext *s,
palette_plane = s->current_frame.data[0];
prev_palette_plane = s->last_frame.data[0];
+ if (!prev_palette_plane)
+ prev_palette_plane = palette_plane;
stride = s->current_frame.linesize[0];
line_inc = stride - width;
curframe_index = y * stride + x;