avcodec: simplify video decode loop, video decoders consume the full buffer by default
avcodec: remove now unused variable