vp9: fix crash if segmentation=1, keyframe/intraonly=1 and updatemap=0.
authorRonald S. Bultje <rsbultje@gmail.com>
Tue, 24 Dec 2013 02:40:13 +0000 (21:40 -0500)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Dec 2013 10:43:53 +0000 (11:43 +0100)
commitacafbb4dd26014305bae331d80b9ba7b918d8b8a
tree14743fe2bd445c03280643f26bdf3bf25c37f08d
parent4a55bffad32e266d96b72b40cf1a7d085e7fce93
vp9: fix crash if segmentation=1, keyframe/intraonly=1 and updatemap=0.

The reference map is never used in such cases, but we accidently copied
it anyway. This could cause crashes if this map has not yet been
allocated. Fixes trac ticket 3188.

Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/vp9.c