I have this working now. flashsv now handles negative linesize just fine. The only file I've modified is flashsvenc.c. Code changes are actually quite minimal. I'll submit a patch as soon as I figure out protocol for doing so.