fixes 2.4-branch according to trunk: update anim->curposition even if video frame decoding failed. Fixes nasty issues with DV-decoding on broken frames. Also: cleans up color conversion a little bit.