lagarith: reallocate rgb_planes when needed
authorAnton Khirnov <anton@khirnov.net>
Thu, 28 Nov 2013 09:54:35 +0000 (10:54 +0100)
committerReinhard Tartler <siretart@tauware.de>
Sat, 1 Mar 2014 04:07:41 +0000 (23:07 -0500)
commit3da4fdd5acdd137660412e3b58433b4693d05e84
tree8989202f9245137f943ec8e295de3fdfb897fd99
parent2fb0a52e70fa2b6df8d303713f9eafc393a0a145
lagarith: reallocate rgb_planes when needed

Fixes invalid writes on pixel format changes.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC:libav-stable@libav.org
(cherry picked from commit 4c3e1956ee35fdcc5ffdb28782050164b4623c0b)
(cherry picked from commit bd57e783437f990c3ac4747eeebe20332e103980)
libavcodec/lagarith.c