avcodec/qtrle: Check how much of the chunk is available before decoding