This adds lots of extra .ifs, but speeds it up by a couple cycles, by avoiding stalls. This is cherrypicked from libav commit e18c39005a. Signed-off-by: Martin Storsjö <martin@martin.st>
e18c39005a