OSDN Git Service

VC1: Fix intensity compensation performance regression
authorMason Carter <void.main.argc.argv@gmail.com>
Sun, 22 Dec 2013 01:27:18 +0000 (17:27 -0800)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Dec 2013 13:05:06 +0000 (14:05 +0100)
commited5bed4152203aed8cce01a679bed67bbda8903f
treed1659c636b6b19e4b6028a51a3cbfce8da206c53
parent5410a5dc660858920d58a5f09daba264f370f81c
VC1: Fix intensity compensation performance regression

Fix https://trac.ffmpeg.org/ticket/3204

The problem was that intensity compensation was always used once it was
encountered. This is because v->next_use_ic was never set back to zero.
To fix this, when resetting v->next_luty/uv, also reset v->next_use_ic.

This improved (restored) performance by 85% when decoding
http://bit.ly/bbbwmv

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