avcodec/dstdec: Check for input exhaustion