ffv1dec: Avoid unnecessarily large stack usage and copies.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Tue, 2 Sep 2014 18:55:35 +0000 (20:55 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 22 Nov 2014 18:06:12 +0000 (19:06 +0100)
commit8437cc72060f3fb057b96a908b33e9954074bac7
tree98b7a842c47abcccf45782c5be022874fba4acab
parent9146a476003cbf3adef88d26834928e53f9a9d8b
ffv1dec: Avoid unnecessarily large stack usage and copies.

Ideally the compiler could figure this out on its own,
but it seems it can't.
An alternative that would avoid the messy explicit memcpy
would be to use a sub-struct for the parts that should
be preserved, which can then simply be assigned.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavcodec/ffv1dec.c