avcodec/ffv1dec: reorganize thread init/update
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Sep 2013 20:38:43 +0000 (22:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Sep 2013 21:22:06 +0000 (23:22 +0200)
commit21dc3a3cc23c624630a4379f08a6efe0230de37a
treee0b8693a41734413ce15d84c47f4df500e8f9309
parentc72cca5a44d8a83e097a97a13990d421ba7a4c5d
avcodec/ffv1dec: reorganize thread init/update

This moves some allocations to init, reducing possible failure modes in update.
Always copies from the previous context instead of just during init

Fixes Ticket2923

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ffv1dec.c